diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-08 16:58:57 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-09 07:43:39 (GMT) |
commit | 50ddb3451007a94d87c064216603a3e3e6e8b9c6 (patch) | |
tree | 5860fb96d685a2ccf4a4d0e8410d172ca626de18 /src/gui/graphicsview/qgraphicswidget.cpp | |
parent | 8a5a52e95a8ec81ce4bc3bb0599cfab510c8400a (diff) | |
download | Qt-50ddb3451007a94d87c064216603a3e3e6e8b9c6.zip Qt-50ddb3451007a94d87c064216603a3e3e6e8b9c6.tar.gz Qt-50ddb3451007a94d87c064216603a3e3e6e8b9c6.tar.bz2 |
Add ItemSendsGeometryChanges, replacing itemChangeEnabled().
This flag toggles whether we should send notifications for setPos,
setMatrix, and setTransform. It's off by default. Docs have been updated.
All autotests pass. This change also cleans up a bit so that we both
have readable code, and keeping the optimized path for when we need to
send the notifications.
By enabling this flag by default we are going to trigger regressions in
end-user code.
Reviewed-by: bnilsen
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index 3296aee..7314167 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -1057,6 +1057,9 @@ void QGraphicsWidget::updateGeometry() ItemParentChange both to deliver \l ParentChange events, and for managing the focus chain. + QGraphicsWidget enables the ItemSendsGeometryChanges flag by default in + order to track position changes. + \sa propertyChange() */ QVariant QGraphicsWidget::itemChange(GraphicsItemChange change, const QVariant &value) |