Stop animation driver in the appropriate place.
Calling stop from restartAnimationTimer was incorrect (it was initially added as a fix after the introduction of QAnimationDriver, but this is a better location for the fix). Change-Id: I2507096b846ada061e36a9ece6aa814d801ddd53 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>bb10
parent
30a4d9bc99
commit
5d00ae3b69
|
|
@ -269,8 +269,7 @@ void QUnifiedTimer::restartAnimationTimer()
|
|||
if (pauseTimer.isActive())
|
||||
pauseTimer.stop();
|
||||
driver->start();
|
||||
} else if (runningLeafAnimations == 0)
|
||||
driver->stop();
|
||||
}
|
||||
}
|
||||
|
||||
void QUnifiedTimer::setTimingInterval(int interval)
|
||||
|
|
@ -303,6 +302,7 @@ void QUnifiedTimer::stopTimer()
|
|||
{
|
||||
stopTimerPending = false;
|
||||
if (animations.isEmpty()) {
|
||||
driver->stop();
|
||||
pauseTimer.stop();
|
||||
// invalidate the start reference time
|
||||
time.invalidate();
|
||||
|
|
|
|||
Loading…
Reference in New Issue