summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-04-22 04:52:44 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-04-22 04:52:44 (GMT)
commitf2c5ea07b2ed5f96bd32f9a1d71ec9613c240fa6 (patch)
tree390ae15f24cd5b6af85b9bc74c39fd90ba03144b /doc
parent1139eb432a18d556efb4ecfc079e82c2e2093b96 (diff)
parent3f39c3380f97339a1ffb9d13d7b184a8315d3821 (diff)
downloadQt-f2c5ea07b2ed5f96bd32f9a1d71ec9613c240fa6.zip
Qt-f2c5ea07b2ed5f96bd32f9a1d71ec9613c240fa6.tar.gz
Qt-f2c5ea07b2ed5f96bd32f9a1d71ec9613c240fa6.tar.bz2
Merge branch 'kinetic-animations' of ../../qt/kinetic into kinetic-declarativeui
Conflicts: src/gui/graphicsview/qgraphicsitem.cpp
Diffstat (limited to 'doc')
-rw-r--r--doc/src/statemachine.qdoc12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/statemachine.qdoc b/doc/src/statemachine.qdoc
index c79839f..3051d19 100644
--- a/doc/src/statemachine.qdoc
+++ b/doc/src/statemachine.qdoc
@@ -77,21 +77,21 @@
The above state machine is perfectly fine, but it doesn't \e do anything; it
merely transitions from one state to another. The
- QState::setPropertyOnEntry() function can be used to have a state set a
+ QAbstractState::assignProperty() function can be used to have a state set a
property of a QObject when the state is entered. In the following snippet,
the value that should be assigned to a QLabel's text property is specified
for each state:
\code
- s1->setPropertyOnEntry(label, "text", "In state s1");
- s2->setPropertyOnEntry(label, "text", "In state s2");
- s3->setPropertyOnEntry(label, "text", "In state s3");
+ s1->assignProperty(label, "text", "In state s1");
+ s2->assignProperty(label, "text", "In state s2");
+ s3->assignProperty(label, "text", "In state s3");
\endcode
When any of the states is entered, the label's text will be changed
accordingly.
- The QState::invokeMethodOnEntry() function can be used to have a state
+ The QActionState::invokeMethodOnEntry() function can be used to have a state
invoke a method (a slot) of a QObject when the state is entered. In the
following snippet, the button's showMaximized() slot will be called when
state \c s3 is entered:
@@ -204,7 +204,7 @@
QHistoryState *s1h = s1->addHistoryState();
QState *s3 = new QState();
- s3->setPropertyOnEntry(label, "text", "In s3");
+ s3->assignProperty(label, "text", "In s3");
QMessageBox mbox;
mbox.addButton(QMessageBox::Ok);
mbox.setText("Interrupted!");