summaryrefslogtreecommitdiffstats
path: root/examples/animation/stickman/node.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-09-03 13:33:31 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-09-03 14:17:32 (GMT)
commit99929a28df4812c86b4aabc4d02490d9fac87e85 (patch)
tree3af64ee824ae1ca2a2b53496d2ec3e99de73597a /examples/animation/stickman/node.cpp
parent245c63c306be18442ee9fd1178e30bfb4aad7717 (diff)
downloadQt-99929a28df4812c86b4aabc4d02490d9fac87e85.zip
Qt-99929a28df4812c86b4aabc4d02490d9fac87e85.tar.gz
Qt-99929a28df4812c86b4aabc4d02490d9fac87e85.tar.bz2
fix warnings in stickman demo on mingw
We now also use the brand-new QGraphicsObject class We also make sure we have less memory leak or bad deallocation.
Diffstat (limited to 'examples/animation/stickman/node.cpp')
-rw-r--r--examples/animation/stickman/node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/animation/stickman/node.cpp b/examples/animation/stickman/node.cpp
index 69ff906..1a138b2 100644
--- a/examples/animation/stickman/node.cpp
+++ b/examples/animation/stickman/node.cpp
@@ -47,7 +47,7 @@
#include <QGraphicsSceneMouseEvent>
Node::Node(const QPointF &pos, QGraphicsItem *parent)
- : QGraphicsItem(parent), m_dragging(false)
+ : QGraphicsObject(parent), m_dragging(false)
{
setPos(pos);
setFlag(QGraphicsItem::ItemSendsGeometryChanges);
@@ -73,7 +73,7 @@ QVariant Node::itemChange(GraphicsItemChange change, const QVariant &value)
if (change == QGraphicsItem::ItemPositionChange)
emit positionChanged();
- return QGraphicsItem::itemChange(change, value);
+ return QGraphicsObject::itemChange(change, value);
}
void Node::mousePressEvent(QGraphicsSceneMouseEvent *)