summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-20 03:38:15 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-20 03:42:26 (GMT)
commitdea5af3305ea0b4c7481d0b8f5bad4613a1fb6bc (patch)
tree14dbdc85788d80091fd1cc84288eba517a33d1b7
parenta0c0e0b584b107375a8a348af45da6ad681d4a8c (diff)
downloadQt-dea5af3305ea0b4c7481d0b8f5bad4613a1fb6bc.zip
Qt-dea5af3305ea0b4c7481d0b8f5bad4613a1fb6bc.tar.gz
Qt-dea5af3305ea0b4c7481d0b8f5bad4613a1fb6bc.tar.bz2
Temporary fix for animation bug.
-rw-r--r--src/corelib/animation/qabstractanimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp
index c775a00..f23ad3c 100644
--- a/src/corelib/animation/qabstractanimation.cpp
+++ b/src/corelib/animation/qabstractanimation.cpp
@@ -328,7 +328,7 @@ int QUnifiedTimer::closestPauseAnimationTimeToFinish()
int timeToFinish;
if (animation->direction() == QAbstractAnimation::Forward)
- timeToFinish = animation->totalDuration() - QAbstractAnimationPrivate::get(animation)->totalCurrentTime;
+ timeToFinish = animation->duration() - QAbstractAnimationPrivate::get(animation)->currentTime;
else
timeToFinish = QAbstractAnimationPrivate::get(animation)->totalCurrentTime;