summaryrefslogtreecommitdiffstats
path: root/tests/auto/render/qlight/tst_qlight.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/render/qlight/tst_qlight.cpp')
-rw-r--r--tests/auto/render/qlight/tst_qlight.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/auto/render/qlight/tst_qlight.cpp b/tests/auto/render/qlight/tst_qlight.cpp
index c93198e2c..67a0cd716 100644
--- a/tests/auto/render/qlight/tst_qlight.cpp
+++ b/tests/auto/render/qlight/tst_qlight.cpp
@@ -126,12 +126,12 @@ private Q_SLOTS:
QCoreApplication::processEvents();
QCOMPARE(lightArbiter.events.size(), 2);
- Qt3DCore::QScenePropertyChangePtr change = lightArbiter.events[0].staticCast<Qt3DCore::QScenePropertyChange>();
+ Qt3DCore::QNodePropertyChangePtr change = lightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), light->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::red));
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = lightArbiter.events[1].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = lightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), light->id());
QCOMPARE(change->value().value<float>(), 0.5f);
@@ -160,22 +160,22 @@ private Q_SLOTS:
QCoreApplication::processEvents();
QCOMPARE(pointLightArbiter.events.size(), 4);
- Qt3DCore::QScenePropertyChangePtr change = pointLightArbiter.events[0].staticCast<Qt3DCore::QScenePropertyChange>();
+ Qt3DCore::QNodePropertyChangePtr change = pointLightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::green));
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = pointLightArbiter.events[1].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = pointLightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = pointLightArbiter.events[2].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = pointLightArbiter.events[2].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "constantAttenuation");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = pointLightArbiter.events[3].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = pointLightArbiter.events[3].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "quadraticAttenuation");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<float>(), 1.0f);
@@ -195,17 +195,17 @@ private Q_SLOTS:
QCoreApplication::processEvents();
QCOMPARE(dirLightArbiter.events.size(), 3);
- Qt3DCore::QScenePropertyChangePtr change = dirLightArbiter.events[0].staticCast<Qt3DCore::QScenePropertyChange>();
+ Qt3DCore::QNodePropertyChangePtr change = dirLightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), dirLight->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::blue));
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = dirLightArbiter.events[1].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = dirLightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), dirLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = dirLightArbiter.events[2].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = dirLightArbiter.events[2].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "worldDirection");
QCOMPARE(change->subjectId(), dirLight->id());
QCOMPARE(change->value().value<QVector3D>(), QVector3D(0.5f, 0.0f, -1.0f));
@@ -226,22 +226,22 @@ private Q_SLOTS:
QCoreApplication::processEvents();
QCOMPARE(spotLightArbiter.events.size(), 4);
- Qt3DCore::QScenePropertyChangePtr change = spotLightArbiter.events[0].staticCast<Qt3DCore::QScenePropertyChange>();
+ Qt3DCore::QNodePropertyChangePtr change = spotLightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::lightGray));
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = spotLightArbiter.events[1].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = spotLightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = spotLightArbiter.events[2].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = spotLightArbiter.events[2].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "localDirection");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<QVector3D>(), QVector3D(0.5f, 0.0f, -1.0f));
QCOMPARE(change->type(), Qt3DCore::NodeUpdated);
- change = spotLightArbiter.events[3].staticCast<Qt3DCore::QScenePropertyChange>();
+ change = spotLightArbiter.events[3].staticCast<Qt3DCore::QNodePropertyChange>();
QCOMPARE(change->propertyName(), "cutOffAngle");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<float>(), 0.75f);