summaryrefslogtreecommitdiffstats
path: root/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-06-19 14:51:51 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-19 08:25:20 +0200
commitd2969022aeb746b4fc017dd650e2fbd7740ee790 (patch)
tree0cacdd80ceff9045f61562c9cc5a749f940d00ed /examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
parent41d9f3bde1214a75f0e72ee56153f12c0c7c0963 (diff)
Fix a broken snippet
Change-Id: I9b3e402c07799b10b7480a891b576b2e9e56711c Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml')
-rw-r--r--examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml b/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
index bdd3cf05..a212b595 100644
--- a/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
+++ b/examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml
@@ -56,8 +56,8 @@ Rectangle {
active:true
//! [2]
- onReadingChanged: {
//! [3]
+ onReadingChanged: {
var newx = (bubble.x + calcRoll(accel.reading.x, accel.reading.y, accel.reading.z) * .1)
var newy = (bubble.y - calcPitch(accel.reading.x, accel.reading.y, accel.reading.z) * .1)
@@ -75,8 +75,8 @@ Rectangle {
bubble.x = newx
bubble.y = newy
-//! [4]
}
+//! [3]
}
function calcPitch(x,y,z) {