diff options
author | Sebastian Kügler <sebas@kde.org> | 2015-11-30 01:32:55 +0100 |
---|---|---|
committer | Sebastian Kügler <sebas@kde.org> | 2015-11-30 02:43:40 +0100 |
commit | c5722773d210928b52fb36b65ac50954b9c01d50 (patch) | |
tree | 522de6dde9eb8959d83aef683eafe89c49551ab8 /qt-mobile/qml | |
parent | fd3bb4a84df0df991b37e8a7781a02d16a2918f3 (diff) | |
download | subsurface-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.qml | 7 |
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 { |