summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicswidget
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-03 14:18:24 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-03 14:22:17 (GMT)
commit6dce8c6548aa63fd11ca326b8a54d5623a41573c (patch)
tree9917dc1e5f8f875ca818189bb39a8941c475c386 /tests/auto/qgraphicswidget
parent5fff965369168bc3db164b33ecf6973059567e48 (diff)
downloadQt-6dce8c6548aa63fd11ca326b8a54d5623a41573c.zip
Qt-6dce8c6548aa63fd11ca326b8a54d5623a41573c.tar.gz
Qt-6dce8c6548aa63fd11ca326b8a54d5623a41573c.tar.bz2
Fixed tst_QGraphicsWidget::ensureClipping.
The new recursive scene rendering does not call GraphicsScene::drawItems. Enabling the IndirectPainting optimization flag reverts to the old behaviour. Reviewed-by: ogoffart
Diffstat (limited to 'tests/auto/qgraphicswidget')
-rw-r--r--tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
index 65e6e56..03054f9 100644
--- a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
+++ b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
@@ -2529,6 +2529,7 @@ void tst_QGraphicsWidget::ensureClipping()
RectItem *childitem = new RectItem(Qt::blue, clipWidget);
QGraphicsView view(&scene);
+ view.setOptimizationFlag(QGraphicsView::IndirectPainting);
view.show();
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&view);