summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qvariantanimation_p.h
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-04-21 13:39:37 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-04-22 15:50:40 (GMT)
commitebda84cd06faaf440a096bda7966fa795ca86318 (patch)
treed50c19f9c3cd5b56e857aa35da788244fafdc4c7 /src/corelib/animation/qvariantanimation_p.h
parent6504e06561b9127eb6179b5a5deb8f6cd1fff491 (diff)
downloadQt-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.h14
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
{