summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp6
-rw-r--r--src/gui/graphicsview/qgraphicssceneindex.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index fc9590f..a41f931 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -454,7 +454,7 @@ void QGraphicsScenePrivate::addToIndex(QGraphicsItem *item)
}
} else if (indexMethod == QGraphicsScene::CustomIndex) {
if (item->d_func()->index != -1) {
- customIndex->insertItem(item, item->sceneBoundingRect());
+ customIndex->insertItem(item);
foreach (QGraphicsItem *child, item->children())
child->addToIndex();
}
@@ -470,7 +470,7 @@ void QGraphicsScenePrivate::removeFromIndex(QGraphicsItem *item)
int index = item->d_func()->index;
if (index != -1) {
if (indexMethod == QGraphicsScene::CustomIndex)
- customIndex->removeItem(item, item->sceneBoundingRect());
+ customIndex->removeItem(item);
else
bspTree.removeItem(item, item->sceneBoundingRect());
freeItemIndexes << index;
@@ -581,7 +581,7 @@ void QGraphicsScenePrivate::_q_updateIndex()
if (indexMethod == QGraphicsScene::BspTreeIndex)
bspTree.insertItem(item, rect);
if (indexMethod == QGraphicsScene::CustomIndex)
- customIndex->insertItem(item,rect);
+ customIndex->insertItem(item);
// If the item ignores view transformations, update our
// largest-item-counter to ensure that the view can accurately
diff --git a/src/gui/graphicsview/qgraphicssceneindex.h b/src/gui/graphicsview/qgraphicssceneindex.h
index a56634d..5e825ba 100644
--- a/src/gui/graphicsview/qgraphicssceneindex.h
+++ b/src/gui/graphicsview/qgraphicssceneindex.h
@@ -68,10 +68,10 @@ public:
virtual QRectF rect() const = 0;
virtual void clear() = 0;
- virtual void insertItem(QGraphicsItem *item, const QRectF &rect) = 0;
- virtual void insertItems(QList<QGraphicsItem *> items, const QRectF &rect) = 0;
- virtual void removeItem(QGraphicsItem *item, const QRectF &rect) = 0;
- virtual void removeItems(QList<QGraphicsItem *> items, const QRectF &rect) = 0;
+ virtual void insertItem(QGraphicsItem *item) = 0;
+ virtual void insertItems(QList<QGraphicsItem *> items) = 0;
+ virtual void removeItem(QGraphicsItem *item) = 0;
+ virtual void removeItems(QList<QGraphicsItem *> items) = 0;
virtual QList<QGraphicsItem *> items(const QRectF &rect) = 0;