summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-04-22 09:18:28 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-04-22 09:22:12 (GMT)
commit7dc1d86ef4fd365483dec83b7cafff06521bf8eb (patch)
treeec5f351dd990fbe13dceceeb535410b93bd498fc /examples
parentca6eaf461886142256dfa64a761fc650be2b006f (diff)
downloadQt-7dc1d86ef4fd365483dec83b7cafff06521bf8eb.zip
Qt-7dc1d86ef4fd365483dec83b7cafff06521bf8eb.tar.gz
Qt-7dc1d86ef4fd365483dec83b7cafff06521bf8eb.tar.bz2
Diagram scene example (graphicsview/diagramscene) refresh problem.
Connections between shapes were not updated when moving items around. Problem was that the QGraphicsItem::ItemSendsGeometryChanges flag was not enabled. (Geoemtry changes notifications were disabled by default in 4.6 for performance reasons) Task-number: QT-2482 Reviewed-by: TrustMe
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/diagramscene/diagramitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/graphicsview/diagramscene/diagramitem.cpp b/examples/graphicsview/diagramscene/diagramitem.cpp
index ee028bb..41534d1 100644
--- a/examples/graphicsview/diagramscene/diagramitem.cpp
+++ b/examples/graphicsview/diagramscene/diagramitem.cpp
@@ -82,6 +82,7 @@ DiagramItem::DiagramItem(DiagramType diagramType, QMenu *contextMenu,
setPolygon(myPolygon);
setFlag(QGraphicsItem::ItemIsMovable, true);
setFlag(QGraphicsItem::ItemIsSelectable, true);
+ setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
}
//! [0]