summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qvariantanimation.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-17 23:46:27 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-17 23:46:27 (GMT)
commita60c9a1ff41e5ca1482121ff3f89a112b359b6d4 (patch)
treeebe4f5e941eb3bda28593c2b170101867cb0afe3 /src/corelib/animation/qvariantanimation.cpp
parent412920402f488c2cf6eb81e7582f9b5aa7b06680 (diff)
parentb8a4b365b1105a742369bbaa5dc00e43914089e0 (diff)
downloadQt-a60c9a1ff41e5ca1482121ff3f89a112b359b6d4.zip
Qt-a60c9a1ff41e5ca1482121ff3f89a112b359b6d4.tar.gz
Qt-a60c9a1ff41e5ca1482121ff3f89a112b359b6d4.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Conflicts: .gitignore tests/benchmarks/benchmarks.pro
Diffstat (limited to 'src/corelib/animation/qvariantanimation.cpp')
-rw-r--r--src/corelib/animation/qvariantanimation.cpp7
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.