summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qtransform/tst_qtransform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qtransform/tst_qtransform.cpp')
-rw-r--r--tests/auto/core/qtransform/tst_qtransform.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/core/qtransform/tst_qtransform.cpp b/tests/auto/core/qtransform/tst_qtransform.cpp
index f2dd8fcc8..bcf260cab 100644
--- a/tests/auto/core/qtransform/tst_qtransform.cpp
+++ b/tests/auto/core/qtransform/tst_qtransform.cpp
@@ -104,9 +104,9 @@ private Q_SLOTS:
QCoreApplication::processEvents();
// THEN
- Qt3DCore::QScenePropertyChangePtr change;
+ Qt3DCore::QNodePropertyChangePtr change;
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "translation");
QCOMPARE(change->value().value<QVector3D>(), QVector3D(454.0f, 427.0f, 383.0f));
@@ -119,7 +119,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "rotation");
QCOMPARE(change->value().value<QQuaternion>(), q);
@@ -131,7 +131,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "scale3D");
QCOMPARE(change->value().value<QVector3D>(), QVector3D(883.0f, 1200.0f, 1340.0f));
@@ -146,13 +146,13 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 3);
- change = arbiter.events.takeFirst().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.takeFirst().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "scale3D");
QCOMPARE(change->value().value<QVector3D>(), QVector3D(1.0f, 1.0f, 1.0f));
- change = arbiter.events.takeFirst().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.takeFirst().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "rotation");
QCOMPARE(change->value().value<QQuaternion>(), QQuaternion());
- change = arbiter.events.takeFirst().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.takeFirst().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "translation");
QCOMPARE(change->value().value<QVector3D>(), QVector3D());
@@ -164,7 +164,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QScenePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "rotation");
QCOMPARE(change->value().value<QQuaternion>().toEulerAngles().x(), 20.0f);