summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-05-15 14:03:52 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-05-15 14:03:52 (GMT)
commitbe028df787d8484e51305aac67fe5dbd0310cd51 (patch)
treeb847ae6e9b86ac92b44bc473ccdd7db39d1b0927 /doc/src
parent80fa08d3e7f109e11e67ef73ff7a98312bbca984 (diff)
parent3e280a737607821feeed391d7881baae33f9dcfe (diff)
downloadQt-be028df787d8484e51305aac67fe5dbd0310cd51.zip
Qt-be028df787d8484e51305aac67fe5dbd0310cd51.tar.gz
Qt-be028df787d8484e51305aac67fe5dbd0310cd51.tar.bz2
Merge branch 'kinetic-animations' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-animations
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/examples/tankgame.qdoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/src/examples/tankgame.qdoc b/doc/src/examples/tankgame.qdoc
index 1501a99..ab3e0f4 100644
--- a/doc/src/examples/tankgame.qdoc
+++ b/doc/src/examples/tankgame.qdoc
@@ -82,6 +82,8 @@
"Add tank" menu item should be disabled. This is implemented by giving the "stopped" state two
children which define whether the map is full or not.
+ \snippet examples/statemachine/tankgame/mainwindow.cpp 5
+
To make sure that we go into the correct child state when returning from the "running" state
(if the "Stop game" menu item is selected while the game is running) we also give the "stopped"
state a history state which we make the initial state of "stopped" state.