diff options
author | Alexis Menard <alexis.menard@trolltech.com> | 2009-03-17 14:07:53 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 18:19:04 (GMT) |
commit | 22a3772006c34e51f446eb3ab1cfaf5e40cab583 (patch) | |
tree | af9a169fdc8bb29ad6581d8044b23f36f6d51496 /src/gui/graphicsview | |
parent | 72f34ea254d2ad93e11f740bf2ed2523f1975ee9 (diff) | |
download | Qt-22a3772006c34e51f446eb3ab1cfaf5e40cab583.zip Qt-22a3772006c34e51f446eb3ab1cfaf5e40cab583.tar.gz Qt-22a3772006c34e51f446eb3ab1cfaf5e40cab583.tar.bz2 |
Fixes: Remove from the custom index too (this will change anyway)
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp index 8660853..77711ad 100644 --- a/src/gui/graphicsview/qgraphicsscene.cpp +++ b/src/gui/graphicsview/qgraphicsscene.cpp @@ -822,8 +822,13 @@ void QGraphicsScenePrivate::purgeRemovedItems() return; // Remove stale items from the BSP tree. - if (indexMethod != QGraphicsScene::NoIndex) - bspTree.removeItems(removedItems); + if (indexMethod != QGraphicsScene::NoIndex) { + if (indexMethod == QGraphicsScene::BspTreeIndex) { + bspTree.removeItems(removedItems); + } else { + customIndex->removeItems(removedItems); + } + } // Purge this list. removedItems.clear(); |