summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-24 07:15:10 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-24 07:23:05 (GMT)
commit856b36f49b567a1573d119b5606300c07649b443 (patch)
treecdc633a98b919836db6dda95180edf9140e9050b /tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
parent8a7a3d173d94cabc5bbfa2518f22849d1aa6f855 (diff)
downloadQt-856b36f49b567a1573d119b5606300c07649b443.zip
Qt-856b36f49b567a1573d119b5606300c07649b443.tar.gz
Qt-856b36f49b567a1573d119b5606300c07649b443.tar.bz2
Compile tests
Diffstat (limited to 'tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp')
-rw-r--r--tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/qpropertyanimation/tst_qpropertyanimation.cpp
index b92e140..f86e81d 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(int msecs)
+ void updateCurrentTime()
{
- QPropertyAnimation::updateCurrentTime(msecs);
- if (msecs >= QPropertyAnimation::duration())
+ QPropertyAnimation::updateCurrentTime();
+ if (currentTime() >= QPropertyAnimation::duration() || currentLoop() >= 1)
stop();
}
};
@@ -239,7 +239,7 @@ void tst_QPropertyAnimation::statesAndSignals()
{
QFETCH(bool, uncontrolled);
QPropertyAnimation *anim;
- if (uncontrolled)
+ if (uncontrolled)
anim = new UncontrolledAnimation;
else
anim = new DummyPropertyAnimation;