summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/pingpong.qdoc
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@nokia.com>2012-08-21 16:13:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-23 11:20:37 +0200
commitfc924ae47e73a5b41e274a723d8f7cdefe921c4f (patch)
tree560b0969b970c262c5ebbc9eaa4d23157f103e19 /examples/widgets/doc/pingpong.qdoc
parent8e0bac89d4b0f01b71c57f79a3b98a6ecb7f20ae (diff)
Doc: Fix snippet and example referencing widget examples
Widget examples were moved into a widgets subfolder, but qdoc references were not updated. Change-Id: Id2a4573e723745b9827c664c852807d6116f8f6d Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'examples/widgets/doc/pingpong.qdoc')
-rw-r--r--examples/widgets/doc/pingpong.qdoc16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/widgets/doc/pingpong.qdoc b/examples/widgets/doc/pingpong.qdoc
index c56085d8cf..7594c87c68 100644
--- a/examples/widgets/doc/pingpong.qdoc
+++ b/examples/widgets/doc/pingpong.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \example statemachine/pingpong
+ \example widgets/statemachine/pingpong
\title Ping Pong States Example
The Ping Pong States example shows how to use parallel states together
@@ -48,35 +48,35 @@
ponger state will respond by posting a \c pong event; this will cause the
\c pinger state to post a new \c ping event; and so on.
- \snippet statemachine/pingpong/main.cpp 0
+ \snippet widgets/statemachine/pingpong/main.cpp 0
Two custom events are defined, \c PingEvent and \c PongEvent.
- \snippet statemachine/pingpong/main.cpp 1
+ \snippet widgets/statemachine/pingpong/main.cpp 1
The \c Pinger class defines a state that posts a \c PingEvent to the state
machine when the state is entered.
- \snippet statemachine/pingpong/main.cpp 2
+ \snippet widgets/statemachine/pingpong/main.cpp 2
The \c PingTransition class defines a transition that is triggered by
events of type \c PingEvent, and that posts a \c PongEvent (with a delay
of 500 milliseconds) to the state machine when the transition is
triggered.
- \snippet statemachine/pingpong/main.cpp 3
+ \snippet widgets/statemachine/pingpong/main.cpp 3
The \c PongTransition class defines a transition that is triggered by
events of type \c PongEvent, and that posts a \c PingEvent (with a delay
of 500 milliseconds) to the state machine when the transition is
triggered.
- \snippet statemachine/pingpong/main.cpp 4
+ \snippet widgets/statemachine/pingpong/main.cpp 4
The main() function begins by creating a state machine and a parallel
state group.
- \snippet statemachine/pingpong/main.cpp 5
+ \snippet widgets/statemachine/pingpong/main.cpp 5
Next, the \c pinger and \c ponger states are created, with the parallel
state group as their parent state. Note that the transitions are \e
@@ -85,7 +85,7 @@
be called, and the state machine's configuration will remain the same,
which is precisely what we want in this case.
- \snippet statemachine/pingpong/main.cpp 6
+ \snippet widgets/statemachine/pingpong/main.cpp 6
Finally, the group is added to the state machine, the machine is started,
and the application event loop is entered.