From c5722773d210928b52fb36b65ac50954b9c01d50 Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Mon, 30 Nov 2015 01:32:55 +0100 Subject: Easy access to enable/disable location service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- qt-mobile/qml/main.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qt-mobile/qml') 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 { -- cgit v1.2.3-70-g09d2