summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/pingpong.qdoc
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-09-05 16:53:23 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-11 12:09:47 +0200
commite92c1976a6bc1a73b45f182a72b75d1617f677ca (patch)
tree70c699843b769917c81911b88f0523952be88eb6 /examples/widgets/doc/pingpong.qdoc
parentb5c0e0122ca427058f2faea4e196a95bf5457189 (diff)
Fix example includes for qdoc.
Change-Id: Ifa6a99db27ce51529489bf077a839a3107b524d2 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Paul Olav Tvete <paul.tvete@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 7594c87c68..c56085d8cf 100644
--- a/examples/widgets/doc/pingpong.qdoc
+++ b/examples/widgets/doc/pingpong.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \example widgets/statemachine/pingpong
+ \example 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 widgets/statemachine/pingpong/main.cpp 0
+ \snippet statemachine/pingpong/main.cpp 0
Two custom events are defined, \c PingEvent and \c PongEvent.
- \snippet widgets/statemachine/pingpong/main.cpp 1
+ \snippet 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 widgets/statemachine/pingpong/main.cpp 2
+ \snippet 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 widgets/statemachine/pingpong/main.cpp 3
+ \snippet 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 widgets/statemachine/pingpong/main.cpp 4
+ \snippet statemachine/pingpong/main.cpp 4
The main() function begins by creating a state machine and a parallel
state group.
- \snippet widgets/statemachine/pingpong/main.cpp 5
+ \snippet 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 widgets/statemachine/pingpong/main.cpp 6
+ \snippet 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.