diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-12-10 08:51:03 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-12-10 09:05:19 (GMT) |
commit | 2705480b5cd740eee3ed684a26508b0497b00477 (patch) | |
tree | 5c67a1c0cdabbdecca4159b170bbe2c80e2a2aa1 /src/corelib/animation | |
parent | 16de24d638deafb6e985b531fdf0c15691c0b7b4 (diff) | |
download | Qt-2705480b5cd740eee3ed684a26508b0497b00477.zip Qt-2705480b5cd740eee3ed684a26508b0497b00477.tar.gz Qt-2705480b5cd740eee3ed684a26508b0497b00477.tar.bz2 |
Doc: Try to explain better when and how the easing curve is applied
Maybe not perfect, but it should be *better* at least.
Task-number: QTBUG-6623
Reviewed-by: Thierry
Diffstat (limited to 'src/corelib/animation')
-rw-r--r-- | src/corelib/animation/qvariantanimation.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/animation/qvariantanimation.cpp b/src/corelib/animation/qvariantanimation.cpp index d529f67..bc0d35e 100644 --- a/src/corelib/animation/qvariantanimation.cpp +++ b/src/corelib/animation/qvariantanimation.cpp @@ -373,6 +373,13 @@ QVariantAnimation::~QVariantAnimation() Another example is QEasingCurve::InOutElastic, which provides an elastic effect on the values of the interpolated variant. + QVariantAnimation will use the QEasingCurve::valueForProgress() to + transform the "normalized progress" (currentTime / totalDuration) + of the animation into the effective progress actually + used by the animation. It is this effective progress that will be + the progress when interpolated() is called. Also, the steps in the + keyValues are referring to this effective progress. + The easing curve is used with the interpolator, the interpolated() virtual function, the animation's duration, and iterationCount, to control how the current value changes as the animation progresses. |