summaryrefslogtreecommitdiffstats
path: root/examples/sensors/maze
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-08-17 11:51:21 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-09 20:35:30 +0200
commitceb982907c98d2e71e1d7b84c87b06328c6c391f (patch)
treedfd94bef83dc61c481edaac6b82f84835c1092a6 /examples/sensors/maze
parent3c599b87f33673932a55f3f5621073885dea5bc1 (diff)
Remove the QtSensors 5.0 import
The gesture tests that were part of the sensors2 unit test have been retained. The tilt sensor tests were not, though they could be used as a base to make a unit test for the new tilt sensor class. Change any existing imports to use QtMobility.sensors 1.3. Change-Id: I8a7130b3c73980fdd577e96c10aecda15e79f8b2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'examples/sensors/maze')
-rw-r--r--examples/sensors/maze/maze.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/sensors/maze/maze.qml b/examples/sensors/maze/maze.qml
index 46262877..86103292 100644
--- a/examples/sensors/maze/maze.qml
+++ b/examples/sensors/maze/maze.qml
@@ -73,7 +73,7 @@ import QtQuick 2.0
import "components"
//! [0]
-import QtSensors 5.0
+import QtMobility.sensors 1.3
//! [0]
import QtSystemInfo 5.0
@@ -202,10 +202,10 @@ ApplicationWindow {
//! [3]
var xstep = 0;
- xstep = tiltSensor.yRotation * 0.1 //acceleration
+ xstep = tiltSensor.reading.yRotation * 0.1 //acceleration
var ystep = 0;
- ystep = tiltSensor.xRotation * 0.1 //acceleration
+ ystep = tiltSensor.reading.xRotation * 0.1 //acceleration
//! [3]
//! [4]
if (xstep < 1 && xstep > 0)