summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
diff options
context:
space:
mode:
authorBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-13 08:16:17 (GMT)
committerBjoern Erik Nilsen <bjorn.nilsen@nokia.com>2009-07-13 08:16:26 (GMT)
commitf6079b8407e20942a27f1fe40c4ce0e0a11d3320 (patch)
treefd857cc003edffa20c5ab044859bcdb46f8b0dc8 /tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
parent049ff0b4f74400ab3c8571f6ba3a73106ca3a9dd (diff)
downloadQt-f6079b8407e20942a27f1fe40c4ce0e0a11d3320.zip
Qt-f6079b8407e20942a27f1fe40c4ce0e0a11d3320.tar.gz
Qt-f6079b8407e20942a27f1fe40c4ce0e0a11d3320.tar.bz2
Fix broken tst_QGraphicsItem::sorting.
A top-level window on Windows cannot have a smaller width than 120. Increase the width by 20 and expect another row of items to be painted.
Diffstat (limited to 'tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 4ca1b48..96ee070 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -7113,7 +7113,7 @@ void tst_QGraphicsItem::sorting()
QGraphicsView view(&scene);
view.setResizeAnchor(QGraphicsView::NoAnchor);
view.setTransformationAnchor(QGraphicsView::NoAnchor);
- view.resize(100, 100);
+ view.resize(120, 100);
view.setFrameStyle(0);
view.show();
#ifdef Q_WS_X11
@@ -7130,6 +7130,7 @@ void tst_QGraphicsItem::sorting()
<< grid[1][0] << grid[1][1] << grid[1][2] << grid[1][3]
<< grid[2][0] << grid[2][1] << grid[2][2] << grid[2][3]
<< grid[3][0] << grid[3][1] << grid[3][2] << grid[3][3]
+ << grid[4][0] << grid[4][1] << grid[4][2] << grid[4][3]
<< item1 << item2);
}