summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-25 09:31:04 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-25 15:14:48 (GMT)
commiteab949e2ec8f820a54826c1a837c8c8de07814ab (patch)
tree9eb4e5a54edb984b86f3be9543a57d45b07919e2 /src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h
parent9dc1fc2d30205bb0bad12df4d3cb061f55f4f3f2 (diff)
downloadQt-eab949e2ec8f820a54826c1a837c8c8de07814ab.zip
Qt-eab949e2ec8f820a54826c1a837c8c8de07814ab.tar.gz
Qt-eab949e2ec8f820a54826c1a837c8c8de07814ab.tar.bz2
Re-factor parts of the QGraphicsSceneBspTreeIndex.
This patch adds better support for untransformable items and removes some redundant code.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h b/src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h
index 715b22f..f2f958f 100644
--- a/src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h
+++ b/src/gui/graphicsview/qgraphicsscenebsptreeindex_p.h
@@ -96,7 +96,6 @@ protected:
void addItem(QGraphicsItem *item);
void removeItem(QGraphicsItem *item);
- void deleteItem(QGraphicsItem *item);
void prepareBoundingRectChange(const QGraphicsItem *item);
void sceneRectChanged();
@@ -139,13 +138,12 @@ public:
void startIndexTimer(int interval = QGRAPHICSSCENE_INDEXTIMER_TIMEOUT);
void resetIndex();
- void addToBspTree(QGraphicsItem *item);
- void removeFromBspTree(QGraphicsItem *item);
-
void _q_updateSortCache();
bool sortCacheEnabled;
bool updatingSortCache;
void invalidateSortCache();
+ void addItem(QGraphicsItem *item, bool recursive = false);
+ void removeItem(QGraphicsItem *item, bool recursive = false, bool moveToUnindexedItems = false);
static void climbTree(QGraphicsItem *item, int *stackingOrder);
static bool closestItemFirst_withoutCache(const QGraphicsItem *item1, const QGraphicsItem *item2);