diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-06-19 14:51:51 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-19 08:25:20 +0200 |
commit | d2969022aeb746b4fc017dd650e2fbd7740ee790 (patch) | |
tree | 0cacdd80ceff9045f61562c9cc5a749f940d00ed /examples | |
parent | 41d9f3bde1214a75f0e72ee56153f12c0c7c0963 (diff) | |
download | qtsensors-d2969022aeb746b4fc017dd650e2fbd7740ee790.tar.gz |
Fix a broken snippet
Change-Id: I9b3e402c07799b10b7480a891b576b2e9e56711c
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/QtSensors/QtSensors_accelbubble/QtSensors_accelbubble.qml | 4 |
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 bdd3cf0..a212b59 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) { |