summaryrefslogtreecommitdiffstats
path: root/doc/src/examples/shakeit.qdoc
diff options
context:
space:
mode:
authorWolfgang Beck <wolfgang.beck@nokia.com>2012-05-17 12:27:18 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-24 03:06:56 +0200
commit17d908ba5205513e9ed0be33aebeb3736bda0326 (patch)
treeda04213540ee61853aab6b4260721f1badd703b2 /doc/src/examples/shakeit.qdoc
parent32e2d98ea438041e7e0c4df7e67053c5ee7527a7 (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/examples/shakeit.qdoc')
-rw-r--r--doc/src/examples/shakeit.qdoc41
1 files changed, 20 insertions, 21 deletions
diff --git a/doc/src/examples/shakeit.qdoc b/doc/src/examples/shakeit.qdoc
index 409077d8..fca2a9dd 100644
--- a/doc/src/examples/shakeit.qdoc
+++ b/doc/src/examples/shakeit.qdoc
@@ -26,40 +26,39 @@
****************************************************************************/
/*!
- \example sensors/shakeit
- \title ShakeIt! QML Sensor Gestures Example
+ \example QtSensors/QtSensors_shakeit
+ \title Qt Sensors - ShakeIt QML Example
\ingroup qtsensors-examples
+ \image shakeit.png
+
+ \section2 ShakeIt in QML
\brief The sensor gesture example demonstrates the steps for creating a QML application
that uses sensor gestures and the included shake sensor.
- \image shakeit.jpg
-
- \section1 Overview
- Writing a QML application that uses the Shake QML sensorgestures element
- requires the following steps:
- Import the Sensors Declarative module.
+ Writing a QML application that uses the Shake QML sensorgestures element requires the following steps:
- \snippet ../examples/sensors/shakeit/shakeit.qml 0
+ Import the Sensors Declarative module.
- Add a SensorGesture QML element.
+ \snippet ../examples/QtSensors/QtSensors_shakeit/QtSensors_shakeit.qml 0
- \snippet ../examples/sensors/shakeit/shakeit.qml 1
+ Add a SensorGesture QML element.
- In the SensorGesture element, specify which gesture to be used.
- Note that this can be a comma separated list. Here we are only interested in one
- gesture recognizer.
+ \snippet ../examples/QtSensors/QtSensors_shakeit/QtSensors_shakeit.qml 1
- \snippet ../examples/sensors/shakeit/shakeit.qml 2
+ In the SensorGesture element, specify which gesture to be used.
+ Note that this can be a comma separated list. Here we are only interested in one
+ gesture recognizer.
- Use the 'enabled' property to start the sensor gesture.
+ \snippet ../examples/QtSensors/QtSensors_shakeit/QtSensors_shakeit.qml 2
- \snippet ../examples/sensors/shakeit/shakeit.qml 3
+ Use the 'enabled' property to start the sensor gesture.
- Use the onDetected signal to do stuff.
+ \snippet ../examples/QtSensors/QtSensors_shakeit/QtSensors_shakeit.qml 3
- \snippet ../examples/sensors/shakeit/shakeit.qml 4
+ Use the onDetected signal to do stuff.
- There are additional gestures to shake which are supported:
- whip, twistRight, hover, cover, turnover and pickup.
+ \snippet ../examples/QtSensors/QtSensors_shakeit/QtSensors_shakeit.qml 4
+ There are additional gestures to shake which are supported:
+ whip, twistRight, hover, cover, turnover and pickup.
*/