summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpropertyanimation
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-09-28 13:52:32 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-09-28 13:57:39 (GMT)
commit7626109da40a91cb38fbe3f23e08b50a04d2194a (patch)
treeb53358c91c08ecde5f4d12d5f20e1f6609fa17e7 /tests/auto/qpropertyanimation
parent124b4a1a5832d21d63722ee5ac68007083a4f8ae (diff)
downloadQt-7626109da40a91cb38fbe3f23e08b50a04d2194a.zip
Qt-7626109da40a91cb38fbe3f23e08b50a04d2194a.tar.gz
Qt-7626109da40a91cb38fbe3f23e08b50a04d2194a.tar.bz2
Animations: updateCurrentTime now receives the currentTime as paramater
Reviewed-by: Leo
Diffstat (limited to 'tests/auto/qpropertyanimation')
-rw-r--r--tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
index f86e81d..51ef2da 100644
--- a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
+++ b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
@@ -55,10 +55,10 @@ public:
int duration() const { return -1; /* not time driven */ }
protected:
- void updateCurrentTime()
+ void updateCurrentTime(int currentTime)
{
- QPropertyAnimation::updateCurrentTime();
- if (currentTime() >= QPropertyAnimation::duration() || currentLoop() >= 1)
+ QPropertyAnimation::updateCurrentTime(currentTime);
+ if (currentTime >= QPropertyAnimation::duration() || currentLoop() >= 1)
stop();
}
};