diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-08-17 11:51:21 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-09 20:35:30 +0200 |
commit | ceb982907c98d2e71e1d7b84c87b06328c6c391f (patch) | |
tree | dfd94bef83dc61c481edaac6b82f84835c1092a6 /examples/sensors/maze | |
parent | 3c599b87f33673932a55f3f5621073885dea5bc1 (diff) | |
download | qtsensors-ceb982907c98d2e71e1d7b84c87b06328c6c391f.tar.gz |
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.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/sensors/maze/maze.qml b/examples/sensors/maze/maze.qml index 4626287..8610329 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) |