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/lifecycle.cpp | |
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/lifecycle.cpp')
-rw-r--r-- | examples/animation/stickman/lifecycle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/animation/stickman/lifecycle.cpp b/examples/animation/stickman/lifecycle.cpp index 0fff529..463a27d 100644 --- a/examples/animation/stickman/lifecycle.cpp +++ b/examples/animation/stickman/lifecycle.cpp @@ -100,7 +100,7 @@ LifeCycle::LifeCycle(StickMan *stickMan, GraphicsView *keyReceiver) m_animationGroup = new QParallelAnimationGroup(); const int stickManNodeCount = m_stickMan->nodeCount(); for (int i=0; i<stickManNodeCount; ++i) { - QPropertyAnimation *pa = new QPropertyAnimation(m_stickMan->node(i), "position"); + QPropertyAnimation *pa = new QPropertyAnimation(m_stickMan->node(i), "pos"); m_animationGroup->addAnimation(pa); } @@ -186,7 +186,7 @@ QState *LifeCycle::makeState(QState *parentState, const QString &animationFileNa QState *frameState = new QState(topLevel); const int nodeCount = animation.nodeCount(); for (int j=0; j<nodeCount; ++j) - frameState->assignProperty(m_stickMan->node(j), "position", animation.nodePos(j)); + frameState->assignProperty(m_stickMan->node(j), "pos", animation.nodePos(j)); //! [1] frameState->setObjectName(QString::fromLatin1("frame %0").arg(i)); |