diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-09-28 13:52:32 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-09-28 13:57:39 (GMT) |
commit | 7626109da40a91cb38fbe3f23e08b50a04d2194a (patch) | |
tree | b53358c91c08ecde5f4d12d5f20e1f6609fa17e7 /tests/auto/qpropertyanimation | |
parent | 124b4a1a5832d21d63722ee5ac68007083a4f8ae (diff) | |
download | Qt-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.cpp | 6 |
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(); } }; |