Make use of the new maybeAdvance animation logic inside the animation system
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 8 Feb 2012 09:19:39 +0000 (10:19 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Feb 2012 03:55:44 +0000 (04:55 +0100)
Change-Id: Ifef986241d4817fe1e8f8cb94b9640b2bcec0d29
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>

src/declarative/animations/qabstractanimationjob.cpp

index a796016..d9fe795 100644 (file)
@@ -137,7 +137,7 @@ void QDeclarativeAnimationTimer::startAnimations()
     startAnimationPending = false;
     //force timer to update, which prevents large deltas for our newly added animations
     if (!animations.isEmpty())
-        QUnifiedTimer::instance()->updateAnimationTimers(-1);
+        QUnifiedTimer::instance()->maybeUpdateAnimationsToCurrentTime();
 
     //we transfer the waiting animations into the "really running" state
     animations += animationsToStart;