diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-09-23 13:30:24 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-09-23 13:48:51 (GMT) |
commit | 9d552fbf54a25b4bab7fff8a150ab0d03d524983 (patch) | |
tree | 350b11394c542050c2de08e8663d8cf0c19717a7 /tests/auto/qsequentialanimationgroup | |
parent | b9fd3e2836553dbe9c48c5d8784155b02a5699a2 (diff) | |
download | Qt-9d552fbf54a25b4bab7fff8a150ab0d03d524983.zip Qt-9d552fbf54a25b4bab7fff8a150ab0d03d524983.tar.gz Qt-9d552fbf54a25b4bab7fff8a150ab0d03d524983.tar.bz2 |
Small change in the API of animations
We're not taking a parameter in updateCurrentTime any more
because that parameter was the total currenttime. So it was taking into
account the currenttime and the currentloop at once. This was inconsistent
Reviewed-by: Leo
Diffstat (limited to 'tests/auto/qsequentialanimationgroup')
-rw-r--r-- | tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp b/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp index 209e68b..b14d6f8 100644 --- a/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp +++ b/tests/auto/qsequentialanimationgroup/tst_qsequentialanimationgroup.cpp @@ -169,10 +169,10 @@ public: int duration() const { return -1; /* not time driven */ } protected: - void updateCurrentTime(int msecs) + void updateCurrentTime() { - QPropertyAnimation::updateCurrentTime(msecs); - if (msecs >= QPropertyAnimation::duration()) + QPropertyAnimation::updateCurrentTime(); + if (currentTime() >= QPropertyAnimation::duration()) stop(); } }; |