From ceb982907c98d2e71e1d7b84c87b06328c6c391f Mon Sep 17 00:00:00 2001 From: Lincoln Ramsay Date: Fri, 17 Aug 2012 11:51:21 +1000 Subject: 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 --- examples/sensors/maze/maze.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/sensors/maze') 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) -- cgit v1.2.3