summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-11-10 00:17:34 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-11-10 00:17:34 (GMT)
commitcb1f6d24e0c834d633720102c7e8edc9801196fb (patch)
treec34336997fe5c3cde4c6b1cc79cbeb66ff68cf1b /src/declarative
parent11ac612190b7bd637ede068d2fe8063021a2a0eb (diff)
downloadQt-cb1f6d24e0c834d633720102c7e8edc9801196fb.zip
Qt-cb1f6d24e0c834d633720102c7e8edc9801196fb.tar.gz
Qt-cb1f6d24e0c834d633720102c7e8edc9801196fb.tar.bz2
Document that Transitions are exclusive.
Task-number: QTBUG-15183
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/util/qdeclarativetransition.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativetransition.cpp b/src/declarative/util/qdeclarativetransition.cpp
index 478c7f4..c8bc7b3 100644
--- a/src/declarative/util/qdeclarativetransition.cpp
+++ b/src/declarative/util/qdeclarativetransition.cpp
@@ -86,12 +86,16 @@ QT_BEGIN_NAMESPACE
Item {
...
transitions: [
- Transition { ... },
+ Transition { to: "state1" ... },
Transition { ... }
]
}
\endqml
+ If multiple Transitions are specified, only a single (best-matching) Transition will be applied for any particular
+ state change. In the example above, when changing to \c state1, the first transition will be used, rather
+ than the more generic second transition.
+
If a state change has a Transition that matches the same property as a
\l Behavior, the Transition animation overrides the \l Behavior for that
state change.