summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-01-05 10:35:09 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-01-05 10:35:09 (GMT)
commit553e0cafa578ece64c07afa11571eca4c7b9444c (patch)
treef716991feca4d86f8d68aa7ac5d6dda9f47079e2 /doc
parentfee4ec0c8f507fae4f6795f43dca1333f46c9922 (diff)
downloadQt-553e0cafa578ece64c07afa11571eca4c7b9444c.zip
Qt-553e0cafa578ece64c07afa11571eca4c7b9444c.tar.gz
Qt-553e0cafa578ece64c07afa11571eca4c7b9444c.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
Diffstat (limited to 'doc')
-rw-r--r--doc/src/frameworks-technologies/animation.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/frameworks-technologies/animation.qdoc b/doc/src/frameworks-technologies/animation.qdoc
index cd6e304..77cc8dc 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,