diff options
author | Chris Adams <christopher.adams@nokia.com> | 2012-07-17 12:19:31 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-19 10:02:40 +0200 |
commit | b523301a668e6c6cc5fc93440842ad063066f12b (patch) | |
tree | 236d84bdd510a7d64f6a5cc08699da2ecd0246be /src/quick/doc/src/concepts/statesanimations | |
parent | 9fe378497773dc2b8682b8c49375c7d913de5f8d (diff) |
Add documentation about property value modifiers
Previously, property value modifiers were only documented in QtQuick,
when really they are a QtQml module / QML language feature.
This commit also improves the QtQuick documentation for convenience
types, and rearranges some links and content for improved consistency.
Change-Id: Ic4dbe0b8bb85bdfbb8ac2f336c13c2960f8d1842
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'src/quick/doc/src/concepts/statesanimations')
-rw-r--r-- | src/quick/doc/src/concepts/statesanimations/topic.qdoc | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/src/quick/doc/src/concepts/statesanimations/topic.qdoc b/src/quick/doc/src/concepts/statesanimations/topic.qdoc index 8ca02fd444..25b0958162 100644 --- a/src/quick/doc/src/concepts/statesanimations/topic.qdoc +++ b/src/quick/doc/src/concepts/statesanimations/topic.qdoc @@ -89,22 +89,28 @@ and transition elements. See the documentation on {Animations and Transitions In Qt Quick} for information about these elements and how to use them. -Animations are not only related to states and transitions between states; for + +\section1 Animating Property Assignments + +Animations are not only related to states and transitions between states. For example, an animation might be triggered by other events, which are not -associated with a distinct state. It is often beneficial to always animate -changes to certain properties of visual items, regardless of the cause of the -change (for example, opacity effects). +associated with a distinct state. + +It is often beneficial to always animate changes to certain properties of +visual items, regardless of the cause of the change (for example, opacity +effects). Qt Quick provides the \l Behavior type which allows the client to +specify animation behavior for changes to properties. The \l Behavior type +is an example of a QML object +\l{qtqml-typesystem-topic.html#property-modifier-types}{property modifier}. -This type of animation is supported in Qt Quick with the \c{Behavior} element -through the \tt{"Behavior on <Property>"} syntax. Please see the documentation -about +Please see the documentation about \l{qtquick-statesanimations-animations.html#default-animation-as-behaviors} -{default property animation behaviors} for more information about the Behavior -element and how to use it. +{default property animations} for more information about using the \l Behavior +element to provide default property change animations. -It is important to note, however, that using default property animations -(using Behavior elements) as well as state-transition animations can sometimes -results in undefined behavior occurring. Please see the documentation about +It is important to note, that using default property animations (via the +\l Behavior type) in combination with state-transition animations can sometimes +result in undefined behavior occurring. Please see the documentation about \l{qtquick-statesanimations-behaviors.html} {using Qt Quick Behaviors with States} for more information about this topic. |