diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-09-02 14:17:40 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-09-02 14:22:21 (GMT) |
commit | 9b7b54f72278249984565d67ebac6b2700c3d002 (patch) | |
tree | ca2ece3af069c7ed0bda320b4c868a3418f19e55 /examples/animation | |
parent | 6e7d21677621eb7855174bf370cc3047e9e0a4ba (diff) | |
download | Qt-9b7b54f72278249984565d67ebac6b2700c3d002.zip Qt-9b7b54f72278249984565d67ebac6b2700c3d002.tar.gz Qt-9b7b54f72278249984565d67ebac6b2700c3d002.tar.bz2 |
Fix repainting artifacts in Stickman example
Graphics view now requires that you set a flag to get notifications
about geometry changes. We need these changes to make sure the bounding
rectangle of the parent item is up-to-date.
Reviewed-by: Leo
Task number: 258495
Diffstat (limited to 'examples/animation')
-rw-r--r-- | examples/animation/stickman/node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/animation/stickman/node.cpp b/examples/animation/stickman/node.cpp index 51224bb..69ff906 100644 --- a/examples/animation/stickman/node.cpp +++ b/examples/animation/stickman/node.cpp @@ -50,6 +50,7 @@ Node::Node(const QPointF &pos, QGraphicsItem *parent) : QGraphicsItem(parent), m_dragging(false) { setPos(pos); + setFlag(QGraphicsItem::ItemSendsGeometryChanges); } Node::~Node() |