diff options
author | Martin Smith <msmith@trolltech.com> | 2010-01-05 10:35:09 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-01-07 10:38:55 (GMT) |
commit | 00bb82912aecd664d14ea8d3d0d1d964db7a36d6 (patch) | |
tree | b99ba00f948ef0d91d1ec114f7e6157b556f5eb6 | |
parent | c221327673f3bbc50c0cdb9de068e133b05c2740 (diff) | |
download | Qt-00bb82912aecd664d14ea8d3d0d1d964db7a36d6.zip Qt-00bb82912aecd664d14ea8d3d0d1d964db7a36d6.tar.gz Qt-00bb82912aecd664d14ea8d3d0d1d964db7a36d6.tar.bz2 |
doc: Replaced usses of rootState() with state machine pointer.
The root state of a QStateMachine is now the state machine itself.
Task-number: QTBUG-6907
(cherry picked from commit 553e0cafa578ece64c07afa11571eca4c7b9444c)
-rw-r--r-- | doc/src/frameworks-technologies/animation.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/frameworks-technologies/animation.qdoc b/doc/src/frameworks-technologies/animation.qdoc index 8d34da4..985828a 100644 --- a/doc/src/frameworks-technologies/animation.qdoc +++ b/doc/src/frameworks-technologies/animation.qdoc @@ -352,11 +352,11 @@ QStateMachine *machine = new QStateMachine; - QState *state1 = new QState(machine->rootState()); + QState *state1 = new QState(machine); state1->assignProperty(button, "geometry", QRect(0, 0, 100, 30)); machine->setInitialState(state1); - QState *state2 = new QState(machine->rootState()); + QState *state2 = new QState(machine); state2->assignProperty(button, "geometry", QRect(250, 250, 100, 30)); QSignalTransition *transition1 = state1->addTransition(button, |