diff options
author | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-15 16:04:23 (GMT) |
---|---|---|
committer | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-15 16:06:26 (GMT) |
commit | 862236dc7cdff27305c4a3ade9c802eafce03c80 (patch) | |
tree | 03aaa9bd6fb30f551999d9a3c1f39f069f04660e /src/gui/graphicsview | |
parent | 31bed31d6d058a17d74de05a1653256decdfc735 (diff) | |
download | Qt-862236dc7cdff27305c4a3ade9c802eafce03c80.zip Qt-862236dc7cdff27305c4a3ade9c802eafce03c80.tar.gz Qt-862236dc7cdff27305c4a3ade9c802eafce03c80.tar.bz2 |
QGraphicsItems not painted after QGraphicsScene::clear().
The problem was that we didn't regenerate the bsp when adding
items after calling QGraphicsScene::clear.
Reviewed-by: alexis
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp b/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp index a54ade9..110e892 100644 --- a/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp +++ b/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp @@ -542,6 +542,7 @@ void QGraphicsSceneBspTreeIndex::clear() d->indexedItems.clear(); d->unindexedItems.clear(); d->untransformableItems.clear(); + d->regenerateIndex = true; } /*! |