summaryrefslogtreecommitdiffstats
path: root/examples/animation/stickman/node.h
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.h
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.h')
-rw-r--r--examples/animation/stickman/node.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/animation/stickman/node.h b/examples/animation/stickman/node.h
index 66ee565..4360d2e 100644
--- a/examples/animation/stickman/node.h
+++ b/examples/animation/stickman/node.h
@@ -44,10 +44,9 @@
#include <QGraphicsItem>
-class Node: public QObject, public QGraphicsItem
+class Node: public QGraphicsObject
{
Q_OBJECT
- Q_PROPERTY(QPointF position READ pos WRITE setPos)
public:
Node(const QPointF &pos, QGraphicsItem *parent = 0);
~Node();