diff options
Diffstat (limited to 'tests/auto/qquickdrawer/tst_qquickdrawer.cpp')
-rw-r--r-- | tests/auto/qquickdrawer/tst_qquickdrawer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qquickdrawer/tst_qquickdrawer.cpp b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp index 043ddc5a..57393d7a 100644 --- a/tests/auto/qquickdrawer/tst_qquickdrawer.cpp +++ b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp @@ -1305,11 +1305,15 @@ void tst_QQuickDrawer::slider() const QPoint from(slider->width() - 1, y); const QPoint to(1, y); + QTest::qWait(1); + if (mouse) QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, from); else QTest::touchEvent(window, touchDevice.data()).press(0, from); + QTest::qWait(1); + int distance = qAbs(from.x() - to.x()); for (int dx = delta; dx <= distance; dx += delta) { if (mouse) |