summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-04 15:12:42 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:33:50 (GMT)
commita47b632971068001d56471a9cb78ad983c4a9fee (patch)
tree477be0341b097a8533876d7e4bad44dc44aa0c8c /tests/auto/qgraphicsitem
parent9eb253eed0ae75d1d32b5e738ead89434fc69837 (diff)
downloadQt-a47b632971068001d56471a9cb78ad983c4a9fee.zip
Qt-a47b632971068001d56471a9cb78ad983c4a9fee.tar.gz
Qt-a47b632971068001d56471a9cb78ad983c4a9fee.tar.bz2
Ensure this test goes via QGraphicsScene::drawItems().
Enable QGraphicsView::IndirectPainting to make sure it detects which items are drawn.
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 9cfd897..427ecf3 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -5874,6 +5874,7 @@ void tst_QGraphicsItem::nestedClipping()
l3->setData(0, "l3");
QGraphicsView view(&scene);
+ view.setOptimizationFlag(QGraphicsView::IndirectPainting);
view.show();
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&view);