From bceb42b605696d408d86fad50ddd8d24c1c3499e Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Sun, 6 Jan 2019 16:05:55 +0100
Subject: Initial layout
---
BinaryFun.desktop | 12 +
BinaryFun.pro | 40 +++
BinaryFun.pro.user | 713 +++++++++++++++++++++++++++++++++++++++++++
icons/108x108/BinaryFun.png | Bin 0 -> 7433 bytes
icons/128x128/BinaryFun.png | Bin 0 -> 9004 bytes
icons/172x172/BinaryFun.png | Bin 0 -> 12765 bytes
icons/86x86/BinaryFun.png | Bin 0 -> 5835 bytes
qml/BinaryFun.qml | 10 +
qml/cover/CoverPage.qml | 22 ++
qml/pages/FirstPage.qml | 139 +++++++++
qml/pages/SettingsPage.qml | 30 ++
rpm/BinaryFun.changes.in | 18 ++
rpm/BinaryFun.changes.run.in | 25 ++
rpm/BinaryFun.spec | 71 +++++
rpm/BinaryFun.yaml | 45 +++
src/BinaryFun.cpp | 22 ++
translations/BinaryFun-de.ts | 33 ++
translations/BinaryFun.ts | 33 ++
18 files changed, 1213 insertions(+)
create mode 100644 BinaryFun.desktop
create mode 100644 BinaryFun.pro
create mode 100644 BinaryFun.pro.user
create mode 100644 icons/108x108/BinaryFun.png
create mode 100644 icons/128x128/BinaryFun.png
create mode 100644 icons/172x172/BinaryFun.png
create mode 100644 icons/86x86/BinaryFun.png
create mode 100644 qml/BinaryFun.qml
create mode 100644 qml/cover/CoverPage.qml
create mode 100644 qml/pages/FirstPage.qml
create mode 100644 qml/pages/SettingsPage.qml
create mode 100644 rpm/BinaryFun.changes.in
create mode 100644 rpm/BinaryFun.changes.run.in
create mode 100644 rpm/BinaryFun.spec
create mode 100644 rpm/BinaryFun.yaml
create mode 100644 src/BinaryFun.cpp
create mode 100644 translations/BinaryFun-de.ts
create mode 100644 translations/BinaryFun.ts
diff --git a/BinaryFun.desktop b/BinaryFun.desktop
new file mode 100644
index 0000000..bf3001c
--- /dev/null
+++ b/BinaryFun.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+X-Nemo-Application-Type=silica-qt5
+Icon=BinaryFun
+Exec=BinaryFun
+Name=BinaryFun
+# translation example:
+# your app name in German locale (de)
+#
+# Remember to comment out the following line, if you do not want to use
+# a different app name in German locale (de).
+Name[de]=BinaryFun
diff --git a/BinaryFun.pro b/BinaryFun.pro
new file mode 100644
index 0000000..a2b2c84
--- /dev/null
+++ b/BinaryFun.pro
@@ -0,0 +1,40 @@
+# NOTICE:
+#
+# Application name defined in TARGET has a corresponding QML filename.
+# If name defined in TARGET is changed, the following needs to be done
+# to match new name:
+# - corresponding QML filename must be changed
+# - desktop icon filename must be changed
+# - desktop filename must be changed
+# - icon definition filename in desktop file must be changed
+# - translation filenames have to be changed
+
+# The name of your application
+TARGET = BinaryFun
+
+CONFIG += sailfishapp
+
+SOURCES += src/BinaryFun.cpp
+
+DISTFILES += qml/BinaryFun.qml \
+ qml/cover/CoverPage.qml \
+ qml/pages/FirstPage.qml \
+ rpm/BinaryFun.changes.in \
+ rpm/BinaryFun.changes.run.in \
+ rpm/BinaryFun.spec \
+ rpm/BinaryFun.yaml \
+ translations/*.ts \
+ BinaryFun.desktop \
+ qml/pages/SettingsPage.qml
+
+SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
+
+# to disable building translations every time, comment out the
+# following CONFIG line
+CONFIG += sailfishapp_i18n
+
+# German translation is enabled as an example. If you aren't
+# planning to localize your app, remember to comment out the
+# following TRANSLATIONS line. And also do not forget to
+# modify the localized app name in the the .desktop file.
+TRANSLATIONS += translations/BinaryFun-de.ts
diff --git a/BinaryFun.pro.user b/BinaryFun.pro.user
new file mode 100644
index 0000000..e8e0f09
--- /dev/null
+++ b/BinaryFun.pro.user
@@ -0,0 +1,713 @@
+
+
+
+
+
+ EnvironmentId
+ {1cd99421-ba56-4c51-bdec-e904699ea9c3}
+
+
+ ProjectExplorer.Project.ActiveTarget
+ 0
+
+
+ ProjectExplorer.Project.EditorSettings
+
+ true
+ false
+ true
+
+ Cpp
+
+ CppGlobal
+
+
+
+ QmlJS
+
+ QmlJSGlobal
+
+
+ 2
+ UTF-8
+ false
+ 4
+ false
+ 80
+ true
+ true
+ 1
+ true
+ false
+ 0
+ true
+ true
+ 0
+ 8
+ true
+ 1
+ true
+ true
+ true
+ false
+
+
+
+ ProjectExplorer.Project.PluginSettings
+
+
+
+ ProjectExplorer.Project.Target.0
+
+ SailfishOS-3.0.0.8-i486 (in Sailfish OS Build Engine)
+ SailfishOS-3.0.0.8-i486 (in Sailfish OS Build Engine)
+ {5937b1e5-114b-46e7-88bb-b7cc7e8424e5}
+ 0
+ 0
+ 0
+
+ /home/melvin/Coding/build-BinaryFun-SailfishOS_3_0_0_8_i486_in_Sailfish_OS_Build_Engine-Debug
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Debug
+ Debug
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+ true
+
+
+ /home/melvin/Coding/build-BinaryFun-SailfishOS_3_0_0_8_i486_in_Sailfish_OS_Build_Engine-Release
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ false
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Release
+ Release
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+
+ /home/melvin/Coding/build-BinaryFun-SailfishOS_3_0_0_8_i486_in_Sailfish_OS_Build_Engine-Profile
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ true
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Profile
+ Profile
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+ 3
+
+
+
+ true
+ RPM
+
+ QmakeProjectManager.MerRpmBuildStep
+
+ 1
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy By Building An RPM Package
+ Deploy By Building An RPM Package
+ QmakeProjectManager.MerMb2RpmBuildConfiguration
+
+
+
+
+ true
+ Prepare Target
+
+ QmakeProjectManager.MerPrepareTargetStep
+
+
+ true
+ Rsync
+
+ QmakeProjectManager.MerRsyncDeployStep
+
+ 2
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy By Copying Binaries
+ Deploy By Copying Binaries
+ QmakeProjectManager.MerRSyncDeployConfiguration
+
+
+
+
+ true
+ Prepare Target
+
+ QmakeProjectManager.MerPrepareTargetStep
+
+
+ true
+ RPM
+
+ QmakeProjectManager.MerRpmDeployStep
+
+ 2
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy As RPM Package
+ Deploy As RPM Package
+ QmakeProjectManager.MerRpmDeployConfiguration
+
+ 3
+
+
+ false
+ false
+ 1000
+
+ true
+
+ false
+ false
+ false
+ false
+ true
+ 0.01
+ 10
+ true
+ 1
+ 25
+
+ 1
+ true
+ false
+ true
+ valgrind
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+
+ /home/melvin/Coding/BinaryFun
+ false
+ 10234
+ 3
+
+ -1
+
+
+
+
+ Custom Executable
+
+ ProjectExplorer.CustomExecutableRunConfiguration
+ 3768
+ false
+ true
+ false
+ false
+ true
+
+ 1
+
+
+
+ ProjectExplorer.Project.Target.1
+
+ SailfishOS-3.0.0.8-armv7hl (in Sailfish OS Build Engine)
+ SailfishOS-3.0.0.8-armv7hl (in Sailfish OS Build Engine)
+ {c2c68a7d-4585-4a8f-9e36-a9b373f9d34e}
+ 0
+ 0
+ 0
+
+ /home/melvin/Coding/build-BinaryFun-SailfishOS_3_0_0_8_armv7hl_in_Sailfish_OS_Build_Engine-Debug
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Debug
+ Debug
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+ true
+
+
+ /home/melvin/Coding/build-BinaryFun-SailfishOS_3_0_0_8_armv7hl_in_Sailfish_OS_Build_Engine-Release
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ false
+
+ false
+ false
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Release
+ Release
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+
+ /home/melvin/Coding/build-BinaryFun-SailfishOS_3_0_0_8_armv7hl_in_Sailfish_OS_Build_Engine-Profile
+
+
+ true
+ qmake
+
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ true
+ false
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ false
+
+
+
+ 2
+ Build
+
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Make
+
+ Qt4ProjectManager.MakeStep
+
+ -w
+ -r
+
+ true
+ clean
+
+
+ 1
+ Clean
+
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Profile
+ Profile
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ true
+
+ 3
+
+
+
+ true
+ RPM
+
+ QmakeProjectManager.MerRpmBuildStep
+
+ 1
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy By Building An RPM Package
+ Deploy By Building An RPM Package
+ QmakeProjectManager.MerMb2RpmBuildConfiguration
+
+
+
+
+ true
+ Prepare Target
+
+ QmakeProjectManager.MerPrepareTargetStep
+
+
+ true
+ Rsync
+
+ QmakeProjectManager.MerRsyncDeployStep
+
+ 2
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy By Copying Binaries
+ Deploy By Copying Binaries
+ QmakeProjectManager.MerRSyncDeployConfiguration
+
+
+
+
+ true
+ Prepare Target
+
+ QmakeProjectManager.MerPrepareTargetStep
+
+
+ true
+ RPM
+
+ QmakeProjectManager.MerRpmDeployStep
+
+ 2
+ Deploy
+
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ Deploy As RPM Package
+ Deploy As RPM Package
+ QmakeProjectManager.MerRpmDeployConfiguration
+
+ 3
+
+
+ false
+ false
+ 1000
+
+ true
+
+ false
+ false
+ false
+ false
+ true
+ 0.01
+ 10
+ true
+ 1
+ 25
+
+ 1
+ true
+ false
+ true
+ valgrind
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+
+ /home/melvin/Coding/BinaryFun
+ false
+ 10234
+ 3
+
+ -1
+
+
+
+
+ Custom Executable
+
+ ProjectExplorer.CustomExecutableRunConfiguration
+ 3768
+ false
+ true
+ false
+ false
+ true
+
+ 1
+
+
+
+ ProjectExplorer.Project.TargetCount
+ 2
+
+
+ ProjectExplorer.Project.Updater.FileVersion
+ 18
+
+
+ Version
+ 18
+
+
diff --git a/icons/108x108/BinaryFun.png b/icons/108x108/BinaryFun.png
new file mode 100644
index 0000000..ab10628
Binary files /dev/null and b/icons/108x108/BinaryFun.png differ
diff --git a/icons/128x128/BinaryFun.png b/icons/128x128/BinaryFun.png
new file mode 100644
index 0000000..54375c5
Binary files /dev/null and b/icons/128x128/BinaryFun.png differ
diff --git a/icons/172x172/BinaryFun.png b/icons/172x172/BinaryFun.png
new file mode 100644
index 0000000..36eee58
Binary files /dev/null and b/icons/172x172/BinaryFun.png differ
diff --git a/icons/86x86/BinaryFun.png b/icons/86x86/BinaryFun.png
new file mode 100644
index 0000000..ad316d6
Binary files /dev/null and b/icons/86x86/BinaryFun.png differ
diff --git a/qml/BinaryFun.qml b/qml/BinaryFun.qml
new file mode 100644
index 0000000..829cf95
--- /dev/null
+++ b/qml/BinaryFun.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+import "pages"
+
+ApplicationWindow
+{
+ initialPage: Component { FirstPage { } }
+ cover: Qt.resolvedUrl("cover/CoverPage.qml")
+ allowedOrientations: defaultAllowedOrientations
+}
diff --git a/qml/cover/CoverPage.qml b/qml/cover/CoverPage.qml
new file mode 100644
index 0000000..fc562d5
--- /dev/null
+++ b/qml/cover/CoverPage.qml
@@ -0,0 +1,22 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+CoverBackground {
+ Label {
+ id: label
+ anchors.centerIn: parent
+ text: qsTr("My Cover")
+ }
+
+ CoverActionList {
+ id: coverAction
+
+ CoverAction {
+ iconSource: "image://theme/icon-cover-next"
+ }
+
+ CoverAction {
+ iconSource: "image://theme/icon-cover-pause"
+ }
+ }
+}
diff --git a/qml/pages/FirstPage.qml b/qml/pages/FirstPage.qml
new file mode 100644
index 0000000..9cfd4db
--- /dev/null
+++ b/qml/pages/FirstPage.qml
@@ -0,0 +1,139 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+Page {
+ property var pads: [
+ [0, 0, 0, 0],
+ [0, 0, 0, 0],
+ [0, 0, 0, 0],
+ [0, 0, 0, 0]
+ ];
+
+ function check(row, index, checked) {
+ pads[row][index] = checked ? 1 : 0;
+ }
+
+ function getRandom() {
+ return Math.floor(Math.random() * 16);
+ }
+
+ id: page
+ allowedOrientations: Orientation.All
+
+ SilicaFlickable {
+ anchors.fill: parent
+
+ PullDownMenu {
+ MenuItem {
+ text: qsTr("Show Page 2")
+ onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
+ }
+ }
+
+ contentHeight: column.height
+
+ Column {
+ id: column
+ width: page.width
+ spacing: Theme.paddingLarge
+ anchors.horizontalCenter: parent.horizontalCenter
+
+ PageHeader {
+ title: qsTr("Binary Fun")
+ }
+
+ Grid {
+ anchors.horizontalCenter: parent.horizontalCenter
+ columns: 5
+
+ // UGLINESS STARTS IN 3.. 2.. 1.. !
+
+ Switch {
+ onClicked: check(0, 4, checked)
+ }
+
+ Switch {
+ onClicked: check(0, 3, checked)
+ }
+
+ Switch {
+ onClicked: check(0, 2, checked)
+ }
+
+ Switch {
+ onClicked: check(0, 1, checked)
+ }
+
+ Label {
+ text: getRandom()
+ }
+
+ //
+
+ Switch {
+ onClicked: check(1, 4, checked)
+ }
+
+ Switch {
+ onClicked: check(1, 3, checked)
+ }
+
+ Switch {
+ onClicked: check(1, 2, checked)
+ }
+
+ Switch {
+ onClicked: check(1, 1, checked)
+ }
+
+ Label {
+ text: getRandom()
+ }
+
+ //
+
+ Switch {
+ onClicked: check(2, 4, checked)
+ }
+
+ Switch {
+ onClicked: check(2, 3, checked)
+ }
+
+ Switch {
+ onClicked: check(2, 2, checked)
+ }
+
+ Switch {
+ onClicked: check(2, 1, checked)
+ }
+
+ Label {
+ text: getRandom()
+ }
+
+ //
+
+ Switch {
+ onClicked: check(3, 4, checked)
+ }
+
+ Switch {
+ onClicked: check(3, 3, checked)
+ }
+
+ Switch {
+ onClicked: check(3, 2, checked)
+ }
+
+ Switch {
+ onClicked: check(3, 1, checked)
+ }
+
+ Label {
+ text: getRandom()
+ }
+ }
+ }
+ }
+}
diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml
new file mode 100644
index 0000000..6dbadf4
--- /dev/null
+++ b/qml/pages/SettingsPage.qml
@@ -0,0 +1,30 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+Page {
+ id: page
+
+ // The effective value will be restricted by ApplicationWindow.allowedOrientations
+ allowedOrientations: Orientation.All
+
+ SilicaListView {
+ id: listView
+ model: 20
+ anchors.fill: parent
+ header: PageHeader {
+ title: qsTr("Nested Page")
+ }
+ delegate: BackgroundItem {
+ id: delegate
+
+ Label {
+ x: Theme.horizontalPageMargin
+ text: qsTr("Item") + " " + index
+ anchors.verticalCenter: parent.verticalCenter
+ color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
+ }
+ onClicked: console.log("Clicked " + index)
+ }
+ VerticalScrollDecorator {}
+ }
+}
diff --git a/rpm/BinaryFun.changes.in b/rpm/BinaryFun.changes.in
new file mode 100644
index 0000000..9717639
--- /dev/null
+++ b/rpm/BinaryFun.changes.in
@@ -0,0 +1,18 @@
+# Rename this file as BinaryFun.changes to include changelog
+# entries in your RPM file.
+#
+# Add new changelog entries following the format below.
+# Add newest entries to the top of the list.
+# Separate entries from eachother with a blank line.
+#
+# Alternatively, if your changelog is automatically generated (e.g. with
+# the git-change-log command provided with Sailfish OS SDK), create a
+# BinaryFun.changes.run script to let mb2 run the required commands for you.
+
+# * date Author's Name version-release
+# - Summary of changes
+
+* Sun Apr 13 2014 Jack Tar 0.0.1-1
+- Scrubbed the deck
+- Hoisted the sails
+
diff --git a/rpm/BinaryFun.changes.run.in b/rpm/BinaryFun.changes.run.in
new file mode 100644
index 0000000..c7f6475
--- /dev/null
+++ b/rpm/BinaryFun.changes.run.in
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# Rename this file as BinaryFun.changes.run to let mb2 automatically
+# generate changelog from well formatted Git commit messages and tag
+# annotations.
+
+git-change-log
+
+# Here are some basic examples how to change from the default behavior. Run
+# git-change-log --help inside the Sailfish OS SDK chroot or build engine to
+# learn all the options git-change-log accepts.
+
+# Use a subset of tags
+#git-change-log --tags refs/tags/my-prefix/*
+
+# Group entries by minor revision, suppress headlines for patch-level revisions
+#git-change-log --dense '/[0-9]\+\.[0-9\+$'
+
+# Trim very old changes
+#git-change-log --since 2014-04-01
+#echo '[ Some changelog entries trimmed for brevity ]'
+
+# Use the subjects (first lines) of tag annotations when no entry would be
+# included for a revision otherwise
+#git-change-log --auto-add-annotations
diff --git a/rpm/BinaryFun.spec b/rpm/BinaryFun.spec
new file mode 100644
index 0000000..cc02736
--- /dev/null
+++ b/rpm/BinaryFun.spec
@@ -0,0 +1,71 @@
+#
+# Do NOT Edit the Auto-generated Part!
+# Generated by: spectacle version 0.27
+#
+
+Name: BinaryFun
+
+# >> macros
+# << macros
+
+%{!?qtc_qmake:%define qtc_qmake %qmake}
+%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
+%{!?qtc_make:%define qtc_make make}
+%{?qtc_builddir:%define _builddir %qtc_builddir}
+Summary: Binary Fun
+Version: 0.1
+Release: 1
+Group: Qt/Qt
+License: LICENSE
+URL: http://example.org/
+Source0: %{name}-%{version}.tar.bz2
+Source100: BinaryFun.yaml
+Requires: sailfishsilica-qt5 >= 0.10.9
+BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
+BuildRequires: pkgconfig(Qt5Core)
+BuildRequires: pkgconfig(Qt5Qml)
+BuildRequires: pkgconfig(Qt5Quick)
+BuildRequires: desktop-file-utils
+
+%description
+Short description of my Sailfish OS Application
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+# >> setup
+# << setup
+
+%build
+# >> build pre
+# << build pre
+
+%qtc_qmake5
+
+%qtc_make %{?_smp_mflags}
+
+# >> build post
+# << build post
+
+%install
+rm -rf %{buildroot}
+# >> install pre
+# << install pre
+%qmake5_install
+
+# >> install post
+# << install post
+
+desktop-file-install --delete-original \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{buildroot}%{_datadir}/applications/*.desktop
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+# >> files
+# << files
diff --git a/rpm/BinaryFun.yaml b/rpm/BinaryFun.yaml
new file mode 100644
index 0000000..2e45a01
--- /dev/null
+++ b/rpm/BinaryFun.yaml
@@ -0,0 +1,45 @@
+Name: BinaryFun
+Summary: Binary Fun
+Version: 0.1
+Release: 1
+# The contents of the Group field should be one of the groups listed here:
+# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
+Group: Qt/Qt
+URL: http://example.org/
+License: LICENSE
+# This must be generated before uploading a package to a remote build service.
+# Usually this line does not need to be modified.
+Sources:
+- '%{name}-%{version}.tar.bz2'
+Description: |
+ Short description of my Sailfish OS Application
+Configure: none
+# The qtc5 builder inserts macros to allow QtCreator to have fine
+# control over qmake/make execution
+Builder: qtc5
+
+# This section specifies build dependencies that are resolved using pkgconfig.
+# This is the preferred way of specifying build dependencies for your package.
+PkgConfigBR:
+ - sailfishapp >= 1.0.2
+ - Qt5Core
+ - Qt5Qml
+ - Qt5Quick
+
+# Build dependencies without a pkgconfig setup can be listed here
+# PkgBR:
+# - package-needed-to-build
+
+# Runtime dependencies which are not automatically detected
+Requires:
+ - sailfishsilica-qt5 >= 0.10.9
+
+# All installed files
+Files:
+ - '%{_bindir}'
+ - '%{_datadir}/%{name}'
+ - '%{_datadir}/applications/%{name}.desktop'
+ - '%{_datadir}/icons/hicolor/*/apps/%{name}.png'
+
+# For more information about yaml and what's supported in Sailfish OS
+# build system, please see https://wiki.merproject.org/wiki/Spectacle
diff --git a/src/BinaryFun.cpp b/src/BinaryFun.cpp
new file mode 100644
index 0000000..fbcbfd0
--- /dev/null
+++ b/src/BinaryFun.cpp
@@ -0,0 +1,22 @@
+#ifdef QT_QML_DEBUG
+#include
+#endif
+
+using std::string;
+
+#include
+
+int main(int argc, char *argv[])
+{
+ // SailfishApp::main() will display "qml/BinaryFun.qml", if you need more
+ // control over initialization, you can use:
+ //
+ // - SailfishApp::application(int, char *[]) to get the QGuiApplication *
+ // - SailfishApp::createView() to get a new QQuickView * instance
+ // - SailfishApp::pathTo(QString) to get a QUrl to a resource file
+ // - SailfishApp::pathToMainQml() to get a QUrl to the main QML file
+ //
+ // To display the view, call "show()" (will show fullscreen on device).
+
+ return SailfishApp::main(argc, argv);
+}
diff --git a/translations/BinaryFun-de.ts b/translations/BinaryFun-de.ts
new file mode 100644
index 0000000..49c680d
--- /dev/null
+++ b/translations/BinaryFun-de.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ CoverPage
+
+ My Cover
+ Mein Cover
+
+
+
+ FirstPage
+
+ Show Page 2
+ Zur Seite 2
+
+
+ Binary Fun
+ Binary Fun
+
+
+
+ SettingsPage
+
+ Nested Page
+ Unterseite
+
+
+ Item
+ Element
+
+
+
diff --git a/translations/BinaryFun.ts b/translations/BinaryFun.ts
new file mode 100644
index 0000000..a6b1b42
--- /dev/null
+++ b/translations/BinaryFun.ts
@@ -0,0 +1,33 @@
+
+
+
+
+ CoverPage
+
+ My Cover
+
+
+
+
+ FirstPage
+
+ Show Page 2
+
+
+
+ Binary Fun
+
+
+
+
+ SettingsPage
+
+ Nested Page
+
+
+
+ Item
+
+
+
+
--
cgit v1.2.3