diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-09-03 14:18:24 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-09-03 14:22:17 (GMT) |
commit | 6dce8c6548aa63fd11ca326b8a54d5623a41573c (patch) | |
tree | 9917dc1e5f8f875ca818189bb39a8941c475c386 /tests/auto/qgraphicswidget | |
parent | 5fff965369168bc3db164b33ecf6973059567e48 (diff) | |
download | Qt-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.cpp | 1 |
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); |