diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-04 12:26:39 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-04 12:28:51 (GMT) |
commit | b6275b9dd1a852c86b22b354bfae3c98c8191fda (patch) | |
tree | 06f91367dacd00edea074d776938c471cec66b9b /src/corelib/animation/qabstractanimation_p.h | |
parent | bc9059d7fe5d8c146d3a09ee493b65edb1a75363 (diff) | |
download | Qt-b6275b9dd1a852c86b22b354bfae3c98c8191fda.zip Qt-b6275b9dd1a852c86b22b354bfae3c98c8191fda.tar.gz Qt-b6275b9dd1a852c86b22b354bfae3c98c8191fda.tar.bz2 |
Animations: better handling of the timer
It could be that if you start lots of animations, they would not be
started at the same time and even have their first tick to late.
So we needed to only transfer the started animation when receiving the
start/stop timer tick.
In addition, if the animation timer is already active we don't restart
it. This would cause no animation to receive ticks if lots of them are
started.
Diffstat (limited to 'src/corelib/animation/qabstractanimation_p.h')
-rw-r--r-- | src/corelib/animation/qabstractanimation_p.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/corelib/animation/qabstractanimation_p.h b/src/corelib/animation/qabstractanimation_p.h index 0d8402e..b281aa2 100644 --- a/src/corelib/animation/qabstractanimation_p.h +++ b/src/corelib/animation/qabstractanimation_p.h @@ -135,11 +135,8 @@ public: protected: void timerEvent(QTimerEvent *); - void updateTimer(); private: - void updateRecentlyStartedAnimations(); - QBasicTimer animationTimer, startStopAnimationTimer; QTime time; int lastTick; |