summaryrefslogtreecommitdiff
path: root/app/qml
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-18 23:47:12 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-18 23:47:12 +0200
commitcfd11bb46b0e93903135c127b955e657d7f2b33d (patch)
tree079210e2976317a3296d6b73f9ab641e74c38910 /app/qml
parent1658511121c569f68e649fa84c7743f9c5463c5a (diff)
Implemented settings skeleton and notifications
Diffstat (limited to 'app/qml')
-rw-r--r--app/qml/pages/ManagerPage.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml
index 92d79b1..a6b6699 100644
--- a/app/qml/pages/ManagerPage.qml
+++ b/app/qml/pages/ManagerPage.qml
@@ -32,10 +32,17 @@
import QtQuick 2.0
import QtQml 2.1
import Sailfish.Silica 1.0
+import org.nemomobile.configuration 1.0
Page {
id: page
+ ConfigurationGroup {
+ id: settings
+ path: "/org/pebbled/settings"
+ property bool silentWhenConnected: false
+ }
+
SilicaFlickable {
anchors.fill: parent
@@ -121,10 +128,10 @@ Page {
}
TextSwitch {
text: qsTr("Silent when connected")
- checked: false
+ checked: settings.silentWhenConnected
automaticCheck: false
onClicked: {
- console.log('settings.silentConnected');
+ settings.silentWhenConnected = !settings.silentWhenConnected;
}
}
}