summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qstate.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-05 17:45:06 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-05-05 17:45:06 (GMT)
commit7700ecce8cb3b64e1ef8c4804022ceda2bed24c9 (patch)
treeb545d35d7b7e297e7fc9c0d91b38d23f88de3bd2 /src/corelib/statemachine/qstate.cpp
parentb8a4216f2fb5bc6e5fd5b54c661344e60fc9093c (diff)
downloadQt-7700ecce8cb3b64e1ef8c4804022ceda2bed24c9.zip
Qt-7700ecce8cb3b64e1ef8c4804022ceda2bed24c9.tar.gz
Qt-7700ecce8cb3b64e1ef8c4804022ceda2bed24c9.tar.bz2
doc improvements
Diffstat (limited to 'src/corelib/statemachine/qstate.cpp')
-rw-r--r--src/corelib/statemachine/qstate.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/corelib/statemachine/qstate.cpp b/src/corelib/statemachine/qstate.cpp
index 3220619..4c9e033 100644
--- a/src/corelib/statemachine/qstate.cpp
+++ b/src/corelib/statemachine/qstate.cpp
@@ -68,22 +68,30 @@ QT_BEGIN_NAMESPACE
The assignProperty() function is used for defining property assignments that
should be performed when a state is entered.
+ Top-level states must be passed QStateMachine::rootState() as their parent
+ state, or added to a state machine using QStateMachine::addState().
+
\section1 States with Child States
- For non-parallel state groups, the setInitialState() function must be called
- to set the initial state. The child states are mutually exclusive states,
- and the state machine needs to know which child state to enter when the
- parent state is the target of a transition.
+ The childMode property determines how child states are treated. For
+ non-parallel state groups, the setInitialState() function must be called to
+ set the initial state. The child states are mutually exclusive states, and
+ the state machine needs to know which child state to enter when the parent
+ state is the target of a transition.
+
+ The state emits the QState::finished() signal when a final child state
+ (QFinalState) is entered.
The setErrorState() sets the state's error state. The error state is the
state that the state machine will transition to if an error is detected when
attempting to enter the state (e.g. because no initial state has been set).
+
*/
/*!
\property QState::initialState
- \brief the initial state of this state
+ \brief the initial state of this state (one of its child states)
*/
/*!
@@ -96,6 +104,8 @@ QT_BEGIN_NAMESPACE
\property QState::childMode
\brief the child mode of this state
+
+ The default value of this property is QState::ExclusiveStates.
*/
/*!
@@ -456,6 +466,8 @@ bool QState::event(QEvent *e)
\fn QState::finished()
This signal is emitted when a final child state of this state is entered.
+
+ \sa QFinalState
*/
/*!