diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-04-21 13:39:37 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2009-04-22 15:50:40 (GMT) |
commit | ebda84cd06faaf440a096bda7966fa795ca86318 (patch) | |
tree | d50c19f9c3cd5b56e857aa35da788244fafdc4c7 /src/corelib/animation/qvariantanimation_p.h | |
parent | 6504e06561b9127eb6179b5a5deb8f6cd1fff491 (diff) | |
download | Qt-ebda84cd06faaf440a096bda7966fa795ca86318.zip Qt-ebda84cd06faaf440a096bda7966fa795ca86318.tar.gz Qt-ebda84cd06faaf440a096bda7966fa795ca86318.tar.bz2 |
Fixes QPropertyAnimation's default start value update condition
The default start value is updated when the animation changes from
Stopped to Running state.
Reviewed-by: Jan-Arve
Diffstat (limited to 'src/corelib/animation/qvariantanimation_p.h')
-rw-r--r-- | src/corelib/animation/qvariantanimation_p.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/corelib/animation/qvariantanimation_p.h b/src/corelib/animation/qvariantanimation_p.h index 66910c1..14a3ef6 100644 --- a/src/corelib/animation/qvariantanimation_p.h +++ b/src/corelib/animation/qvariantanimation_p.h @@ -88,18 +88,6 @@ public: return q->d_func(); } - - //some helper functions - bool atBeginning() const - { - return currentTime == 0; - } - - bool atEnd() const - { - return currentTime == duration && currentLoop == (loopCount - 1); - } - void setDefaultStartValue(const QVariant &value); int duration; @@ -109,7 +97,7 @@ public: QVariant currentValue; QVariant defaultStartValue; bool hasStartValue; - + //this is used to keep track of the KeyValue interval in which we currently are struct { |