summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscrollbar
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@nokia.com>2010-07-12 16:02:03 (GMT)
committerRobert Griebl <robert.griebl@nokia.com>2010-07-12 16:02:03 (GMT)
commit1e9348f52f06feb355245a9fffd786562e76e15f (patch)
tree2571b0a16c471056355036a664203f29350ace71 /tests/auto/qscrollbar
parent446770c939b8c643c2a3bec73906055238cf3925 (diff)
downloadQt-1e9348f52f06feb355245a9fffd786562e76e15f.zip
Qt-1e9348f52f06feb355245a9fffd786562e76e15f.tar.gz
Qt-1e9348f52f06feb355245a9fffd786562e76e15f.tar.bz2
Timing fix for slow devices.
Although the wait is only specified as 50ms, it might still take longer than that for Qt to deliver the actual mouse release event (especially on embedded devices). The problem here is that in the meantime the auto-repeat on the button might have been triggered. Reviewed-by: Dominik Holland
Diffstat (limited to 'tests/auto/qscrollbar')
-rw-r--r--tests/auto/qscrollbar/tst_qscrollbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qscrollbar/tst_qscrollbar.cpp b/tests/auto/qscrollbar/tst_qscrollbar.cpp
index 735b2dd..16d5b42 100644
--- a/tests/auto/qscrollbar/tst_qscrollbar.cpp
+++ b/tests/auto/qscrollbar/tst_qscrollbar.cpp
@@ -130,7 +130,7 @@ void tst_QScrollBar::task_209492()
QMouseEvent mousePressEvent(QEvent::MouseButtonPress, pressPoint, globalPressPoint,
Qt::LeftButton, Qt::LeftButton, 0);
QApplication::sendEvent(verticalScrollBar, &mousePressEvent);
- QTest::qWait(50);
+ QTest::qWait(1);
QMouseEvent mouseReleaseEvent(QEvent::MouseButtonRelease, pressPoint, globalPressPoint,
Qt::LeftButton, Qt::LeftButton, 0);
QApplication::sendEvent(verticalScrollBar, &mouseReleaseEvent);