summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-11-11 14:21:18 (GMT)
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-11-12 13:55:50 (GMT)
commit0d6451ec1f1042dbf8c8cd7f2759e2a385d29696 (patch)
tree7d8647ccec050f7b234220040464f99c7e4bd72b /tests
parent215deeabaeba359a9b24681f33f99b80060c4fb1 (diff)
downloadQt-0d6451ec1f1042dbf8c8cd7f2759e2a385d29696.zip
Qt-0d6451ec1f1042dbf8c8cd7f2759e2a385d29696.tar.gz
Qt-0d6451ec1f1042dbf8c8cd7f2759e2a385d29696.tar.bz2
Introduced new class QAnimationDriver for plugging in what drives animations
We need such a concept in place in order to do animations that are driven by vertical sync rather than QTimer, as vertical sync comes constantly at 16.66 ms. This means that animations do will not be jerking... Reviewed-by: bnilsen
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qpauseanimation/tst_qpauseanimation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qpauseanimation/tst_qpauseanimation.cpp b/tests/auto/qpauseanimation/tst_qpauseanimation.cpp
index 605cee6..378eb1c 100644
--- a/tests/auto/qpauseanimation/tst_qpauseanimation.cpp
+++ b/tests/auto/qpauseanimation/tst_qpauseanimation.cpp
@@ -394,7 +394,10 @@ void tst_QPauseAnimation::multipleSequentialGroups()
QVERIFY(subgroup3.state() == QAbstractAnimation::Running);
QVERIFY(subgroup4.state() == QAbstractAnimation::Running);
- QTest::qWait(group.totalDuration() + 100);
+ // This is a pretty long animation so it tends to get rather out of sync
+ // when using the consistent timer, so run for an extra half second for good
+ // measure...
+ QTest::qWait(group.totalDuration() + 500);
#ifdef Q_OS_WIN
if (group.state() != QAbstractAnimation::Stopped)