summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-04-21 13:25:51 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-04-21 13:29:16 (GMT)
commit95b7c50e503dd4743e22c35f341aa31105ea7d73 (patch)
tree6adfdc77c2323a6f5c9b63da3902a823cd205659 /src/gui/graphicsview
parent49b4685a185f6932bcf4c685dc211cf2c4a3dddd (diff)
downloadQt-95b7c50e503dd4743e22c35f341aa31105ea7d73.zip
Qt-95b7c50e503dd4743e22c35f341aa31105ea7d73.tar.gz
Qt-95b7c50e503dd4743e22c35f341aa31105ea7d73.tar.bz2
We don't need to call two times itemChange when an item is deleted.
Previously we were calling two times itemChange on the parent to give QGraphicsItem::ItemChildAddedChange. We don't need that. One is enough. BT : yes Task-number: BT Reviewed-by: Andreas
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index 9881960..b75c422 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -697,12 +697,6 @@ void QGraphicsScenePrivate::_q_removeItemLater(QGraphicsItem *item)
{
Q_Q(QGraphicsScene);
- if (QGraphicsItem *parent = item->d_func()->parent) {
- parent->itemChange(QGraphicsItem::ItemChildRemovedChange,
- qVariantFromValue<QGraphicsItem *>(item));
- parent->d_func()->children.removeAll(item);
- }
-
// Clear focus on the item to remove any reference in the focusWidget
// chain.
item->clearFocus();