summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metawatch/qml/metawatch-digital-config.qml4
-rw-r--r--sowatchui/qml/WatchPage.qml8
2 files changed, 9 insertions, 3 deletions
diff --git a/metawatch/qml/metawatch-digital-config.qml b/metawatch/qml/metawatch-digital-config.qml
index f0f2e91..af1ef9b 100644
--- a/metawatch/qml/metawatch-digital-config.qml
+++ b/metawatch/qml/metawatch-digital-config.qml
@@ -13,7 +13,6 @@ Column {
GConfKey {
id: hourModeKey
key: configKey + "/24h-mode"
- value: hourModeSwitch.checked
}
Label {
text: qsTr("24-hour clock mode")
@@ -26,6 +25,7 @@ Column {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
checked: hourModeKey.value
+ onCheckedChanged: hourModeKey.value = checked
}
}
@@ -37,7 +37,6 @@ Column {
GConfKey {
id: dayMonthOrderKey
key: configKey + "/day-month-order"
- value: dayMonthOrderSwitch.checked
}
Label {
text: qsTr("Use DD/MM instead of MM/DD")
@@ -50,6 +49,7 @@ Column {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
checked: dayMonthOrderKey.value
+ onCheckedChanged: dayMonthOrderKey.value = checked
}
}
}
diff --git a/sowatchui/qml/WatchPage.qml b/sowatchui/qml/WatchPage.qml
index 6ddb7e8..59bb5c4 100644
--- a/sowatchui/qml/WatchPage.qml
+++ b/sowatchui/qml/WatchPage.qml
@@ -39,6 +39,10 @@ Page {
width: parent.width
height: UiConstants.ListItemHeightDefault
+ GConfKey {
+ id: enableKey
+ key: configKey + "/enable"
+ }
Label {
text: qsTr("Enabled")
font: UiConstants.TitleFont
@@ -46,9 +50,11 @@ Page {
anchors.left: parent.left
}
Switch {
+ id: enableSwitch
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
- checked: true
+ checked: enableKey.value
+ onCheckedChanged: enableKey.value = checked
}
}