summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/widgets/itemviews/qlistwidget/tst_qlistwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/widgets/itemviews/qlistwidget/tst_qlistwidget.cpp b/tests/auto/widgets/itemviews/qlistwidget/tst_qlistwidget.cpp
index afc24cd493..9407fe0856 100644
--- a/tests/auto/widgets/itemviews/qlistwidget/tst_qlistwidget.cpp
+++ b/tests/auto/widgets/itemviews/qlistwidget/tst_qlistwidget.cpp
@@ -1515,6 +1515,11 @@ void tst_QListWidget::fastScroll()
topLevel.resize(300, 300); // toplevel needs to be wide enough for the item
topLevel.show();
+
+ // Force the mouse cursor off the widget as it causes item it is over to highlight,
+ // which causes unexpected paint region.
+ QTest::mouseMove(&widget, QPoint(-10, -10));
+
// Make sure the widget gets the first full repaint. On
// some WMs, we'll get two (first inactive exposure, then
// active exposure.