diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-07-31 23:20:27 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2016-07-31 21:47:00 +0000 |
commit | 435e3e95c2285f88b5cfcdd4709c0c614582098a (patch) | |
tree | b8a6d60805e02b0881e9c869333ed37674336d76 /tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | |
parent | c479032e6ee6168c1d7c8354c7274ba1df019544 (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.cpp | 5 |
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()); |