diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-07 00:42:43 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-07 00:42:43 (GMT) |
commit | 7825c0e89fffc1a41d71e5e7a791b10d3c182e32 (patch) | |
tree | 0a423272c0ecc883dd0de0455bc887e4fbd94f7a /doc/src/declarative/animation.qdoc | |
parent | 15e78b8487ee223eb44acf3d34e1cb71f76234ca (diff) | |
download | Qt-7825c0e89fffc1a41d71e5e7a791b10d3c182e32.zip Qt-7825c0e89fffc1a41d71e5e7a791b10d3c182e32.tar.gz Qt-7825c0e89fffc1a41d71e5e7a791b10d3c182e32.tar.bz2 |
Use correct 'from' value for repeating animations.
Each loop, we need to check whether the user has set a from value, and
if not get the current value.
Diffstat (limited to 'doc/src/declarative/animation.qdoc')
-rw-r--r-- | doc/src/declarative/animation.qdoc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/doc/src/declarative/animation.qdoc b/doc/src/declarative/animation.qdoc index f7e03ee..f17f5c9 100644 --- a/doc/src/declarative/animation.qdoc +++ b/doc/src/declarative/animation.qdoc @@ -25,7 +25,7 @@ Other Features: \o Animation synchronization \endlist -The simplest form of animation is using \c NumericAnimation +The simplest form of animation is using \l NumericAnimation The following example creates a bouncing effect: \code @@ -34,20 +34,15 @@ Rect { width: 120; height: 200; color: "white" Image { id: img - source: "pics/qtlogo.png" + source: "qt-logo.png" x: 60-img.width/2 - y: 200-img.height + y: 0 y: SequentialAnimation { running: true repeat: true - NumericAnimation { - to: 200-img.height - easing: "easeOutBounce(amplitude:100)" - duration: 2000 - } - PauseAnimation { - duration: 1000 - } + NumericAnimation { to: 200-img.height; easing: "easeOutBounce"; duration: 2000 } + PauseAnimation { duration: 1000 } + NumericAnimation { to: 0; easing: "easeOutQuad"; duration: 1000 } } } } |