diff options
Diffstat (limited to 'examples/widgets/doc/pingpong.qdoc')
-rw-r--r-- | examples/widgets/doc/pingpong.qdoc | 16 |
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. |