aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/main.qml32
1 files changed, 27 insertions, 5 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index cf0e1078e..1888a77e8 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -106,11 +106,33 @@ MobileComponents.ApplicationWindow {
}
}
]
- CheckBox {
- text: "Run location service"
- checked: manager.locationServiceEnabled
- onCheckedChanged: {
- manager.locationServiceEnabled = checked;
+ MouseArea {
+ height: childrenRect.height
+ width: MobileComponents.Units.gridUnit * 10
+ CheckBox {
+ //text: "Run location service"
+ id: locationCheckbox
+ anchors {
+ left: parent.left
+ top: parent.top
+ }
+ checked: manager.locationServiceEnabled
+ onCheckedChanged: {
+ manager.locationServiceEnabled = checked;
+ }
+ }
+ MobileComponents.Label {
+ x: MobileComponents.Units.gridUnit * 1.5
+ anchors {
+ left: locationCheckbox.right
+ //leftMargin: units.smallSpacing
+ verticalCenter: locationCheckbox.verticalCenter
+ }
+ text: "Run location service"
+ }
+ onClicked: {
+ print("Click.")
+ locationCheckbox.checked = !locationCheckbox.checked
}
}
}