diff options
Diffstat (limited to 'examples/widgets/doc/trafficlight.qdoc')
-rw-r--r-- | examples/widgets/doc/trafficlight.qdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/doc/trafficlight.qdoc b/examples/widgets/doc/trafficlight.qdoc index c35fa4915d..ec3578abaa 100644 --- a/examples/widgets/doc/trafficlight.qdoc +++ b/examples/widgets/doc/trafficlight.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \example widgets/statemachine/trafficlight + \example statemachine/trafficlight \title Traffic Light Example The Traffic Light example shows how to use \l{The State Machine Framework} @@ -39,20 +39,20 @@ one light to another (red to yellow to green to yellow to red again) at certain intervals. - \snippet widgets/statemachine/trafficlight/main.cpp 0 + \snippet statemachine/trafficlight/main.cpp 0 The LightWidget class represents a single light of the traffic light. It provides an \c on property and two slots, turnOn() and turnOff(), to turn the light on and off, respectively. The widget paints itself in the color that's passed to the constructor. - \snippet widgets/statemachine/trafficlight/main.cpp 1 + \snippet statemachine/trafficlight/main.cpp 1 The TrafficLightWidget class represents the visual part of the traffic light; it's a widget that contains three lights arranged vertically, and provides accessor functions for these. - \snippet widgets/statemachine/trafficlight/main.cpp 2 + \snippet statemachine/trafficlight/main.cpp 2 The createLightState() function creates a state that turns a light on when the state is entered, and off when the state is exited. The state uses a @@ -64,7 +64,7 @@ \caption This is a caption \endomit - \snippet widgets/statemachine/trafficlight/main.cpp 3 + \snippet statemachine/trafficlight/main.cpp 3 The TrafficLight class combines the TrafficLightWidget with a state machine. The state graph has four states: red-to-yellow, yellow-to-green, @@ -78,7 +78,7 @@ \caption This is a caption \endomit - \snippet widgets/statemachine/trafficlight/main.cpp 4 + \snippet statemachine/trafficlight/main.cpp 4 The main() function constructs a TrafficLight and shows it. |