summaryrefslogtreecommitdiff
path: root/rockwork/SettingsPage.qml
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2016-02-16 23:40:04 +0100
committerAndrew Branson <andrew.branson@cern.ch>2016-02-16 23:40:04 +0100
commit07fb609095291f8d8544441925dea3d60d636f87 (patch)
treef17f17badc7c0ad8f0147b8968bae91016244a97 /rockwork/SettingsPage.qml
parente54ee938a3e637f654b393f41ce2ad123d448639 (diff)
Moved qml to subdir to unbundle
Diffstat (limited to 'rockwork/SettingsPage.qml')
-rw-r--r--rockwork/SettingsPage.qml80
1 files changed, 0 insertions, 80 deletions
diff --git a/rockwork/SettingsPage.qml b/rockwork/SettingsPage.qml
deleted file mode 100644
index 153aaf4..0000000
--- a/rockwork/SettingsPage.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-import QtQuick 2.4
-import QtQuick.Layouts 1.1
-import Ubuntu.Components 1.3
-import Ubuntu.Components.ListItems 1.3
-
-Page {
- id: root
- title: i18n.tr("Settings")
-
- property var pebble: null
-
- ColumnLayout {
- anchors.fill: parent
- anchors.margins: units.gu(1)
- spacing: units.gu(1)
-
- Label {
- Layout.fillWidth: true
- text: i18n.tr("Distance Units")
- font.bold: true
- }
-
- RowLayout {
- Layout.fillWidth: true
- CheckBox {
- id: metricUnitsCheckbox
- checked: !root.pebble.imperialUnits
- onClicked: {
- checked = true
- root.pebble.imperialUnits = false;
- imperialUnitsCheckBox.checked = false;
- }
- }
- Label {
- text: i18n.tr("Metric")
- Layout.fillWidth: true
- }
- CheckBox {
- id: imperialUnitsCheckBox
- checked: root.pebble.imperialUnits
- onClicked: {
- checked = true
- root.pebble.imperialUnits = true;
- metricUnitsCheckbox.checked = false;
- }
- }
- Label {
- text: i18n.tr("Imperial")
- Layout.fillWidth: true
- }
- }
- ThinDivider {}
-
- Label {
- text: i18n.tr("Calendar")
- Layout.fillWidth: true
- font.bold: true
- }
- RowLayout {
- Layout.fillWidth: true
- Label {
- text: i18n.tr("Sync calendar to timeline")
- Layout.fillWidth: true
- }
- Switch {
- checked: root.pebble.calendarSyncEnabled
- onClicked: {
- root.pebble.calendarSyncEnabled = checked;
- }
- }
- }
- ThinDivider {}
-
- Item {
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
- }
-}
-