summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/elasticnodes
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 /examples/graphicsview/elasticnodes
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 'examples/graphicsview/elasticnodes')
-rw-r--r--examples/graphicsview/elasticnodes/node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/graphicsview/elasticnodes/node.cpp b/examples/graphicsview/elasticnodes/node.cpp
index 6942fa0..53fe994 100644
--- a/examples/graphicsview/elasticnodes/node.cpp
+++ b/examples/graphicsview/elasticnodes/node.cpp
@@ -52,6 +52,7 @@ Node::Node(GraphWidget *graphWidget)
: graph(graphWidget)
{
setFlag(ItemIsMovable);
+ setFlag(ItemSendsGeometryChanges);
setCacheMode(DeviceCoordinateCache);
setZValue(1);
}