summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qsequentialanimationgroup.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-09-28 13:52:32 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-09-28 13:57:39 (GMT)
commit7626109da40a91cb38fbe3f23e08b50a04d2194a (patch)
treeb53358c91c08ecde5f4d12d5f20e1f6609fa17e7 /src/corelib/animation/qsequentialanimationgroup.cpp
parent124b4a1a5832d21d63722ee5ac68007083a4f8ae (diff)
downloadQt-7626109da40a91cb38fbe3f23e08b50a04d2194a.zip
Qt-7626109da40a91cb38fbe3f23e08b50a04d2194a.tar.gz
Qt-7626109da40a91cb38fbe3f23e08b50a04d2194a.tar.bz2
Animations: updateCurrentTime now receives the currentTime as paramater
Reviewed-by: Leo
Diffstat (limited to 'src/corelib/animation/qsequentialanimationgroup.cpp')
-rw-r--r--src/corelib/animation/qsequentialanimationgroup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/animation/qsequentialanimationgroup.cpp b/src/corelib/animation/qsequentialanimationgroup.cpp
index 9ad433f..5ca560a 100644
--- a/src/corelib/animation/qsequentialanimationgroup.cpp
+++ b/src/corelib/animation/qsequentialanimationgroup.cpp
@@ -334,7 +334,7 @@ int QSequentialAnimationGroup::duration() const
/*!
\reimp
*/
-void QSequentialAnimationGroup::updateCurrentTime()
+void QSequentialAnimationGroup::updateCurrentTime(int currentTime)
{
Q_D(QSequentialAnimationGroup);
if (!d->currentAnimation)
@@ -359,7 +359,7 @@ void QSequentialAnimationGroup::updateCurrentTime()
d->setCurrentAnimation(newAnimationIndex.index);
- const int newCurrentTime = d->currentTime - newAnimationIndex.timeOffset;
+ const int newCurrentTime = currentTime - newAnimationIndex.timeOffset;
if (d->currentAnimation) {
d->currentAnimation->setCurrentTime(newCurrentTime);