summaryrefslogtreecommitdiff
path: root/sowatchui
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-10 00:55:40 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-10 00:55:40 +0200
commit3ca0764c683f8c6498b80f8d8410eca96cc9a793 (patch)
tree9336980362cf380181c1ac7eeb5ceda61515f825 /sowatchui
parentd194a6112299cfe045c34e5cdb6adbbb81418d09 (diff)
downloadsowatch-3ca0764c683f8c6498b80f8d8410eca96cc9a793.tar.gz
sowatch-3ca0764c683f8c6498b80f8d8410eca96cc9a793.zip
fix UI issue
Diffstat (limited to 'sowatchui')
-rw-r--r--sowatchui/qml/WatchPage.qml8
1 files changed, 7 insertions, 1 deletions
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
}
}