diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-11-07 19:02:14 +0000 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-11-17 19:41:18 +0000 |
commit | 26a118cfbce29014864f6cdddae66cccb65ffb4f (patch) | |
tree | daea9f2fc41c1df586c35cd56daa61f920ce5b58 /examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp | |
parent | ace675a084ab944a245500b9f54be653126c3147 (diff) |
Remove transforms property of QTransform
Compound transformations are now built up using QMatrix4x4 in both QML
and C++. Updating examples accordingly.
Change-Id: I03c9abf1f6cdd1b56226dc0e16a7ad5ce84516dd
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp')
-rw-r--r-- | examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp b/examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp index b27abcd36..bbe7f8161 100644 --- a/examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp +++ b/examples/qt3d/materials-cpp/rotatingtrefoilknot.cpp @@ -45,16 +45,16 @@ RotatingTrefoilKnot::RotatingTrefoilKnot(Qt3DCore::QNode *parent) m_thetaAnimation->setStartValue(0.0f); m_thetaAnimation->setEndValue(360.0f); m_thetaAnimation->setLoopCount(-1); - m_thetaAnimation->setTargetObject(xaxisRotateTransform()); - m_thetaAnimation->setPropertyName("angle"); + m_thetaAnimation->setTargetObject(this); + m_thetaAnimation->setPropertyName("phi"); m_thetaAnimation->start(); m_phiAnimation->setDuration(2000); m_phiAnimation->setStartValue(0.0f); m_phiAnimation->setEndValue(360.0f); m_phiAnimation->setLoopCount(-1); - m_phiAnimation->setTargetObject(yaxisRotateTransform()); - m_phiAnimation->setPropertyName("angle"); + m_phiAnimation->setTargetObject(this); + m_phiAnimation->setPropertyName("theta"); m_phiAnimation->start(); } |