summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicswidget.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-05-10 01:43:12 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-05-10 01:46:52 (GMT)
commitb524e356424fe386eae56f65600077ce52ca6f92 (patch)
treec0c2b86b3a649bdc99ad6d1b2b443a31ed952efa /src/gui/graphicsview/qgraphicswidget.cpp
parent1ca5742e83b650750d45d03882e8109c61c1f392 (diff)
downloadQt-b524e356424fe386eae56f65600077ce52ca6f92.zip
Qt-b524e356424fe386eae56f65600077ce52ca6f92.tar.gz
Qt-b524e356424fe386eae56f65600077ce52ca6f92.tar.bz2
Optimize QGW constructor.
Mostly by avoiding sending useless QVariant at construction time. itemChange is virtual, the user implementation will never be called. Worst case the QGW one. Reviewed-by:janarve
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicswidget.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp
index b264447..478c0c3 100644
--- a/src/gui/graphicsview/qgraphicswidget.cpp
+++ b/src/gui/graphicsview/qgraphicswidget.cpp
@@ -1105,9 +1105,6 @@ QVariant QGraphicsWidget::itemChange(GraphicsItemChange change, const QVariant &
}
break;
case ItemParentChange: {
- QGraphicsItem *parent = qVariantValue<QGraphicsItem *>(value);
- d->fixFocusChainBeforeReparenting((parent && parent->isWidget()) ? static_cast<QGraphicsWidget *>(parent) : 0, scene());
-
// Deliver ParentAboutToChange.
QEvent event(QEvent::ParentAboutToChange);
QApplication::sendEvent(this, &event);