summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsitem_p.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-08 16:58:57 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:43:39 (GMT)
commit50ddb3451007a94d87c064216603a3e3e6e8b9c6 (patch)
tree5860fb96d685a2ccf4a4d0e8410d172ca626de18 /src/gui/graphicsview/qgraphicsitem_p.h
parent8a5a52e95a8ec81ce4bc3bb0599cfab510c8400a (diff)
downloadQt-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/qgraphicsitem_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsitem_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem_p.h b/src/gui/graphicsview/qgraphicsitem_p.h
index 13fee8f..e2a37a1 100644
--- a/src/gui/graphicsview/qgraphicsitem_p.h
+++ b/src/gui/graphicsview/qgraphicsitem_p.h
@@ -175,6 +175,7 @@ public:
static bool movableAncestorIsSelected(const QGraphicsItem *item);
void setPosHelper(const QPointF &pos);
+ void setTransformHelper(const QTransform &transform);
void setVisibleHelper(bool newVisible, bool explicitly, bool update = true);
void setEnabledHelper(bool newEnabled, bool explicitly, bool update = true);
bool discardUpdateRequest(bool ignoreClipping = false, bool ignoreVisibleBit = false,
@@ -397,12 +398,12 @@ public:
quint32 fullUpdatePending : 1;
// New 32 bits
- quint32 flags : 11;
+ quint32 flags : 12;
quint32 dirtyChildrenBoundingRect : 1;
quint32 paintedViewBoundingRectsNeedRepaint : 1;
quint32 dirtySceneTransform : 1;
quint32 geometryChanged : 1;
- quint32 unused : 17; // feel free to use
+ quint32 unused : 16; // feel free to use
// Optional stacking order
int globalStackingOrder;