summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-09-02 16:17:40 +0200
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-09-02 16:22:21 +0200
commit9b7b54f72278249984565d67ebac6b2700c3d002 (patch)
treeca2ece3af069c7ed0bda320b4c868a3418f19e55 /examples/animation
parent6e7d21677621eb7855174bf370cc3047e9e0a4ba (diff)
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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/animation/stickman/node.cpp b/examples/animation/stickman/node.cpp
index 51224bbfe0..69ff90666f 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()