summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/tutorial3.qdoc
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-24 00:21:04 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-24 00:21:04 (GMT)
commitddb10f63eaa30769fbb5a3f0ed27e39dce650abc (patch)
treed88c9c9adc7dd955da2e8394214522017f0c8b0f /doc/src/declarative/tutorial3.qdoc
parent89a99fb94e12c6d582537048f3c977fb4d4058a7 (diff)
parent9c6472491c9d5ac23696767388bdeb8337e2e0ee (diff)
downloadQt-ddb10f63eaa30769fbb5a3f0ed27e39dce650abc.zip
Qt-ddb10f63eaa30769fbb5a3f0ed27e39dce650abc.tar.gz
Qt-ddb10f63eaa30769fbb5a3f0ed27e39dce650abc.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
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.