summaryrefslogtreecommitdiffstats
path: root/examples/sensors
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors')
-rw-r--r--examples/sensors/qmlqtsensors5/main.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/sensors/qmlqtsensors5/main.qml b/examples/sensors/qmlqtsensors5/main.qml
index e93e8825..cf20a6a3 100644
--- a/examples/sensors/qmlqtsensors5/main.qml
+++ b/examples/sensors/qmlqtsensors5/main.qml
@@ -245,11 +245,11 @@ Rectangle {
id: tiltStart
x: 5
y: 245
- text: "start"
+ text: tilt.enabled ? "running" : "start"
checkColor: "lightblue"
unCheckColor: "lightyellow"
+ color: tilt.enabled ? checkColor : unCheckColor
checked: tilt.enabled
- color: "lightyellow"
onClicked:{
tilt.enabled = tiltStart.checked;
@@ -297,11 +297,11 @@ Rectangle {
id: ambientlightStart
x: 5
y: 35
- text: "start"
+ text: ambientlight.enabled ? "running" : "start"
checkColor: "lightblue"
unCheckColor: "lightyellow"
+ color: ambientlight.enabled ? checkColor : unCheckColor
checked: ambientlight.enabled
- color: "lightyellow"
onClicked:{
ambientlight.enabled = ambientlightStart.checked;
@@ -335,11 +335,11 @@ Rectangle {
id: proxiStart
x: 5
y: 35
- text: "start"
+ text: proxi.enabled ? "running" : "start"
checkColor: "lightblue"
unCheckColor: "lightyellow"
+ color: proxi.enabled ? checkColor : unCheckColor
checked: proxi.enabled
- color: "lightyellow"
onClicked:{
proxi.enabled = proxiStart.checked;