![]() |
Home |
The QtStateFinishedTransition class provides a transition that triggers when a state is finished. More...
#include <QtStateFinishedTransition>
Inherits QtTransition.
The QtStateFinishedTransition class provides a transition that triggers when a state is finished.
A state is finished when one of its final child states (a QtFinalState) is entered; this will cause a QtStateFinishedEvent to be generated. The QtStateFinishedTransition class provides a way of associating a transition with such an event. QtStateFinishedTransition is part of The State Machine Framework.
QtStateMachine machine; QtState *s1 = new QtState(machine.rootState()); QtState *s11 = new QtState(s1); QtFinalState *s12 = new QtFinalState(s1); s11->addTransition(s12); QtState *s2 = new QtState(machine.rootState()); s1->addTransition(new QtStateFinishedTransition(s1), s2);
See also QtState::addFinishedTransition() and QtStateFinishedEvent.
Constructs a new QtStateFinishedTransition object associated with the given state.
See also QtState::addTransition() and QtState::addFinishedTransition().
Destroys this QtStateFinishedTransition.
Copyright © 2009 Nokia | Trademarks | Qt Solutions |