aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-07-31 23:20:27 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2016-07-31 21:47:00 +0000
commit435e3e95c2285f88b5cfcdd4709c0c614582098a (patch)
treeb8a6d60805e02b0881e9c869333ed37674336d76 /tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
parentc479032e6ee6168c1d7c8354c7274ba1df019544 (diff)
Micro optimize tst_qquickwindow::touchEvent_basic
Change-Id: Ifd35eebaa8ba0aadcb15218a494c3e04167182ca Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp')
-rw-r--r--tests/auto/quick/qquickwindow/tst_qquickwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
index 905c8961b2..6878abb178 100644
--- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
+++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
@@ -523,9 +523,8 @@ void tst_qquickwindow::touchEvent_basic()
// press single point
QTest::touchEvent(window, touchDevice).press(0, topItem->mapToScene(pos).toPoint(),window);
- QTest::qWait(50);
-
- QCOMPARE(topItem->lastEvent.touchPoints.count(), 1);
+ QQuickTouchUtils::flush(window);
+ QTRY_COMPARE(topItem->lastEvent.touchPoints.count(), 1);
QVERIFY(middleItem->lastEvent.touchPoints.isEmpty());
QVERIFY(bottomItem->lastEvent.touchPoints.isEmpty());