summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-30 01:32:55 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-11-30 02:43:40 +0100
commitc5722773d210928b52fb36b65ac50954b9c01d50 (patch)
tree522de6dde9eb8959d83aef683eafe89c49551ab8 /qt-mobile/qml
parentfd3bb4a84df0df991b37e8a7781a02d16a2918f3 (diff)
downloadsubsurface-c5722773d210928b52fb36b65ac50954b9c01d50.tar.gz
Easy access to enable/disable location service
Add a checkbox in the global drawer which allows quick access enabling and disabling the location service. This is something the user wants to keep an eye on, quickly enable it before a trip, so it makes sense to give it some prominence. It also helps reminding that the user switched the device into battery-monster-mode. Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r--qt-mobile/qml/main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index bf282608c..cf0e1078e 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -106,6 +106,13 @@ MobileComponents.ApplicationWindow {
}
}
]
+ CheckBox {
+ text: "Run location service"
+ checked: manager.locationServiceEnabled
+ onCheckedChanged: {
+ manager.locationServiceEnabled = checked;
+ }
+ }
}
QtObject {