summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-14 11:12:12 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-14 11:12:12 (GMT)
commitededfad305258f9f450b314d9e2d53a6905bc6d0 (patch)
tree6a3b6e4d7ec09e596c0ba2b9f81b816614089962 /doc
parentfa99a2ab12f646d73498b69fae0020da1abf9685 (diff)
downloadQt-ededfad305258f9f450b314d9e2d53a6905bc6d0.zip
Qt-ededfad305258f9f450b314d9e2d53a6905bc6d0.tar.gz
Qt-ededfad305258f9f450b314d9e2d53a6905bc6d0.tar.bz2
Pop up message when a tank wins the game
Also fixed: Added some docs and moved the tanks a little so they don't start partly outside the scene rect.
Diffstat (limited to 'doc')
-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.