summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlistwidget
diff options
context:
space:
mode:
authorRalf Engels <ralf.engels@nokia.com>2010-08-05 14:07:55 +0200
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 15:30:29 +0100
commit01956f9244bf6da45745a836333a9baf134c4075 (patch)
tree8ec24b07ee11b3d223ed4b09d1f5a04c7242043c /tests/auto/qlistwidget
parent8c696e362851c8d98e5895c8f7302f02a1ba685a (diff)
Fix QListWidget test
Diffstat (limited to 'tests/auto/qlistwidget')
-rw-r--r--tests/auto/qlistwidget/tst_qlistwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qlistwidget/tst_qlistwidget.cpp b/tests/auto/qlistwidget/tst_qlistwidget.cpp
index 990945dbab..6cfd6c5dd9 100644
--- a/tests/auto/qlistwidget/tst_qlistwidget.cpp
+++ b/tests/auto/qlistwidget/tst_qlistwidget.cpp
@@ -1523,6 +1523,7 @@ void tst_QListWidget::fastScroll()
for (int i = 0; i < 50; ++i)
widget.addItem(QString("Item %1").arg(i));
+ topLevel.resize(300, 300); // toplevel needs to be wide enough for the item
topLevel.show();
// Make sure the widget gets the first full repaint. On
// some WMs, we'll get two (first inactive exposure, then