diff options
author | Wolfgang Beck <wolfgang.beck@nokia.com> | 2011-09-28 13:03:07 +1000 |
---|---|---|
committer | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2011-10-10 09:25:31 +1000 |
commit | 93be0e5c0fd1694b0868187ed3daa006dfa4bd79 (patch) | |
tree | 299d135cc77f61d91bfa0ec52798718b49a1c743 /examples/sensors/qmlqtsensors5/main.qml | |
parent | fe9a92ef71d5ab183672d0aeb94ca88e03854c7b (diff) |
MTMW-357 Codereview changes for ProximitySensor QML Element
Change-Id: I5ded985ad4ea99fa7691c6b06bd233acdc517332
Reviewed-on: http://codereview.qt-project.org/5661
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'examples/sensors/qmlqtsensors5/main.qml')
-rw-r--r-- | examples/sensors/qmlqtsensors5/main.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/sensors/qmlqtsensors5/main.qml b/examples/sensors/qmlqtsensors5/main.qml index 8f2ab8b5..b0f213ca 100644 --- a/examples/sensors/qmlqtsensors5/main.qml +++ b/examples/sensors/qmlqtsensors5/main.qml @@ -299,13 +299,13 @@ Rectangle { ProximitySensor { id: proxi - running: true + enabled: true } Text { id: proxitext x: 5 y: 10 - text: "Proximity: " + proxi.close + text: "Proximity: " + proxi.near } Button{ id: proxiStart @@ -314,11 +314,11 @@ Rectangle { text: "start" checkColor: "lightblue" unCheckColor: "lightyellow" - checked: proxi.running + checked: proxi.enabled color: "lightyellow" onClicked:{ - proxi.running = proxiStart.checked; + proxi.enabled = proxiStart.checked; if (proxiStart.checked) proxiStart.text = "running"; else |