diff options
author | Wolfgang Beck <wolfgang.beck@nokia.com> | 2012-05-17 12:27:18 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-24 03:06:56 +0200 |
commit | 17d908ba5205513e9ed0be33aebeb3736bda0326 (patch) | |
tree | da04213540ee61853aab6b4260721f1badd703b2 /doc/src/cubehouse.qdoc | |
parent | 32e2d98ea438041e7e0c4df7e67053c5ee7527a7 (diff) |
Unfork the examples.
Some examples were forked off and updated. Unfork by bringing
these changes back (a later update will bring the other examples
in line with this new style).
The changes are primarily made up of file renaming.
Also, JPG files have been converted to PNG.
Some documentation updates have been done.
Change-Id: Ib090abb5ebea2003d479d2336a23317f52b8c4d8
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'doc/src/cubehouse.qdoc')
-rw-r--r-- | doc/src/cubehouse.qdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/cubehouse.qdoc b/doc/src/cubehouse.qdoc index 7555bb80..42bdd3d0 100644 --- a/doc/src/cubehouse.qdoc +++ b/doc/src/cubehouse.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \example sensors/cubehouse + \example QtSensors/cubehouse \title Cube House QML Accelerometer example \ingroup qtsensors-examples \brief The Cube House example demonstrates the use of the accelerometer to drive a camera to create a pseudo-3D effect. @@ -37,24 +37,24 @@ Import the QtMobility.sensors declarative plugin: -\snippet ../examples/sensors/cubehouse/Cubehouse.qml 0 +\snippet ../examples/QtSensors/cubehouse/Cubehouse.qml 0 Add the Accelerometer QML elements into your qml file. -\snippet ../examples/sensors/cubehouse/Cubehouse.qml 1 +\snippet ../examples/QtSensors/cubehouse/Cubehouse.qml 1 In additional two properties are added to save the calculated pitch and roll values: -\snippet ../examples/sensors/cubehouse/Cubehouse.qml 2 +\snippet ../examples/QtSensors/cubehouse/Cubehouse.qml 2 Reading out the Accelerometer data can be done by implementing the 'onReadingChanged' slot and accessing the 'reading' property from the Accelerometer element: -\snippet ../examples/sensors/cubehouse/Cubehouse.qml 3 +\snippet ../examples/QtSensors/cubehouse/Cubehouse.qml 3 By using a timer the view can be rotated using the pitch and roll properties from the Accelerometer element: -\snippet ../examples/sensors/cubehouse/Cubehouse.qml 4 +\snippet ../examples/QtSensors/cubehouse/Cubehouse.qml 4 */ |