diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-09-27 00:21:35 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-09-27 00:22:18 (GMT) |
commit | ae5eae1a859f330922b1480f82498c5a6212ebd0 (patch) | |
tree | f65a4bf81ef4888f510955d3a542d68c9318f7ea /src/declarative/util | |
parent | 9623a5d9c3d6c6ff655e3a27c6a89c3d18d36906 (diff) | |
download | Qt-ae5eae1a859f330922b1480f82498c5a6212ebd0.zip Qt-ae5eae1a859f330922b1480f82498c5a6212ebd0.tar.gz Qt-ae5eae1a859f330922b1480f82498c5a6212ebd0.tar.bz2 |
Document PropertyAnimation::targets property
Diffstat (limited to 'src/declarative/util')
-rw-r--r-- | src/declarative/util/qdeclarativeanimation.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp index ea3da25..ba6f1e7 100644 --- a/src/declarative/util/qdeclarativeanimation.cpp +++ b/src/declarative/util/qdeclarativeanimation.cpp @@ -2192,6 +2192,13 @@ void QDeclarativePropertyAnimation::setProperties(const QString &prop) The singular forms are slightly optimized, so if you do have only a single target/property to animate you should try to use them. + The \c targets property allows multiple targets to be set. For example, this animates the + \c x property of both \c itemA and \c itemB: + + \qml + NumberAnimation { targets: [itemA, itemB]; properties: "x"; to: 500 } + \endqml + In many cases these properties do not need to be explicitly specified, as they can be inferred from the animation framework: @@ -2255,7 +2262,7 @@ void QDeclarativePropertyAnimation::setProperties(const QString &prop) As seen in the above example, properties is specified as a comma-separated string of property names to animate. - \sa exclude + \sa exclude, {QML Animation} */ QDeclarativeListProperty<QObject> QDeclarativePropertyAnimation::targets() { |