summaryrefslogtreecommitdiffstats
path: root/examples/sensors/cubehouse/Cubehouse.qml
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-04-20 15:18:48 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-27 06:12:40 +0200
commit09fe2e61de1dd9f195ac0d7232bc4db0c381d1b1 (patch)
tree4f18f2643b8184e4321cb6f2757f3b71bffce926 /examples/sensors/cubehouse/Cubehouse.qml
parentef0fd213a74b9bc44f44ee9c65ae144eb3ea7bde (diff)
Try to smooth out camera movements.
I don't remember this being so apparently jerky before. This is... better though not quite there. Change-Id: Ifa54071e139b4dbb278ed96087f7e138dfac30e4 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
Diffstat (limited to 'examples/sensors/cubehouse/Cubehouse.qml')
-rw-r--r--examples/sensors/cubehouse/Cubehouse.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/sensors/cubehouse/Cubehouse.qml b/examples/sensors/cubehouse/Cubehouse.qml
index 1db7209b..f824e960 100644
--- a/examples/sensors/cubehouse/Cubehouse.qml
+++ b/examples/sensors/cubehouse/Cubehouse.qml
@@ -83,6 +83,7 @@ Item {
Accelerometer {
id: accel
active: true
+ dataRate: 20
//! [1]
//! [2]
@@ -102,7 +103,7 @@ Item {
//Timer to read out the x and y rotation of the TiltSensor
//! [4]
Timer {
- interval: 150; running: true; repeat: true
+ interval: 50; running: true; repeat: true
onTriggered: {
view.rotateY(accel.pitch);