summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/tutorial3.qdoc
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-24 00:07:31 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-24 00:07:31 (GMT)
commit3170c89da80feb841b115db28a4dcf5ddadbbded (patch)
treeb1d6554646ef530d561e7b825e53136ea288a4bd /doc/src/declarative/tutorial3.qdoc
parenta28f9a0204fcf7ab4ecf7546fc455f5db3aa7387 (diff)
downloadQt-3170c89da80feb841b115db28a4dcf5ddadbbded.zip
Qt-3170c89da80feb841b115db28a4dcf5ddadbbded.tar.gz
Qt-3170c89da80feb841b115db28a4dcf5ddadbbded.tar.bz2
fromState -> from, toState -> to for Transition.
Diffstat (limited to 'doc/src/declarative/tutorial3.qdoc')
-rw-r--r--doc/src/declarative/tutorial3.qdoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/declarative/tutorial3.qdoc b/doc/src/declarative/tutorial3.qdoc
index d402a66..1330c43 100644
--- a/doc/src/declarative/tutorial3.qdoc
+++ b/doc/src/declarative/tutorial3.qdoc
@@ -33,8 +33,8 @@ Rectangle {
]
transitions: [
Transition {
- fromState: "*"
- toState: "down"
+ from: "*"
+ to: "down"
reversible: true
ParallelAnimation {
NumberAnimation {
@@ -82,15 +82,15 @@ The \e down state includes a set of property changes from our implicit \e {defau
\code
Transition {
- fromState: "*"
- toState: "down"
+ from: "*"
+ to: "down"
reversible: true
}
\endcode
Because we don't want the text to appear at the bottom instantly but rather move smoothly, we add a transition between our two states.
-\c fromState and \c toState define the states between which the transition will run. In this case, we want a transition from any state to our \e down state.
+\c from and \c to define the states between which the transition will run. In this case, we want a transition from any state to our \e down state.
Because we want the same transition to be run in reverse when changing back from the \e down state to the default state, we set \c reversible to \c true. This is equivalent to writing the two transitions separately.