diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-09-03 13:33:31 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-09-03 14:17:32 (GMT) |
commit | 99929a28df4812c86b4aabc4d02490d9fac87e85 (patch) | |
tree | 3af64ee824ae1ca2a2b53496d2ec3e99de73597a /examples/animation/stickman/node.h | |
parent | 245c63c306be18442ee9fd1178e30bfb4aad7717 (diff) | |
download | Qt-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.h | 3 |
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(); |