summaryrefslogtreecommitdiffstats
path: root/doc/src/examples/maze.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/maze.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/maze.qdoc')
-rw-r--r--doc/src/examples/maze.qdoc19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/src/examples/maze.qdoc b/doc/src/examples/maze.qdoc
index 3b89271b..ed2aeabc 100644
--- a/doc/src/examples/maze.qdoc
+++ b/doc/src/examples/maze.qdoc
@@ -26,32 +26,33 @@
****************************************************************************/
/*!
- \example sensors/maze
- \title Maze example
+ \example QtSensors/QtSensors_maze
+ \title Qt Sensors - Maze QML Example
\ingroup qtsensors-examples
+ \image maze.png
+
+ \section2 Maze in QML
\brief The Maze example demonstrates the TiltSensor QML element.
- \image maze.jpg
-\section1 Overview
+
To write a QML application that will use the TiltSensor QML sensors element you need to do the following steps:
Import the QtSensors 5.x declarative plugin:
-\snippet ../examples/sensors/maze/Maze.qml 0
+ \snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 0
Add the Sensor QML elements into your qml file.
In this example we use the TiltSensor with values based in degrees and an accuracy of 5 degree:
-\snippet ../examples/sensors/maze/Maze.qml 1
+ \snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 1
Starting the sensor can be done by setting the 'enabled' property to true:
-\snippet ../examples/sensors/maze/Maze.qml 2
+ \snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 2
To determine the walk direction of the mouse we use the following if -else statements:
-\snippet ../examples/sensors/maze/Maze.qml 3
-
+ \snippet ../examples/QtSensors/QtSensors_maze/QtSensors_maze.qml 3
*/