summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-05-10 12:45:08 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-05-10 19:09:26 +0000
commit8cb8811e1ff4beda5c54f826eec150f3864f397b (patch)
tree5d5506c5edecf2c8a0306dd5476696094a174870 /tests
parentdaa14a660276da4e2b82483d15eb0a929bef9857 (diff)
QNodePropertyChange -> QPropertyUpdatedChange
Task-number: QTBUG-51494 Change-Id: Ic326499f80b5a91b2d19c09770de926f220cc805 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/nodes/tst_nodes.cpp4
-rw-r--r--tests/auto/core/qchangearbiter/tst_qchangearbiter.cpp4
-rw-r--r--tests/auto/core/qtransform/tst_qtransform.cpp16
-rw-r--r--tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp8
-rw-r--r--tests/auto/input/action/tst_action.cpp8
-rw-r--r--tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp10
-rw-r--r--tests/auto/input/axis/tst_axis.cpp8
-rw-r--r--tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp12
-rw-r--r--tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp2
-rw-r--r--tests/auto/input/qaction/tst_qaction.cpp4
-rw-r--r--tests/auto/input/qactioninput/tst_qactioninput.cpp4
-rw-r--r--tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp4
-rw-r--r--tests/auto/input/qaxis/tst_qaxis.cpp4
-rw-r--r--tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp6
-rw-r--r--tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp2
-rw-r--r--tests/auto/render/attribute/tst_attribute.cpp20
-rw-r--r--tests/auto/render/buffer/tst_buffer.cpp14
-rw-r--r--tests/auto/render/commons/testpostmanarbiter.h2
-rw-r--r--tests/auto/render/entity/tst_entity.cpp2
-rw-r--r--tests/auto/render/geometry/tst_geometry.cpp4
-rw-r--r--tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp20
-rw-r--r--tests/auto/render/material/tst_material.cpp8
-rw-r--r--tests/auto/render/objectpicker/tst_objectpicker.cpp14
-rw-r--r--tests/auto/render/picking/tst_picking.cpp2
-rw-r--r--tests/auto/render/qabstractlight/tst_qabstractlight.cpp26
-rw-r--r--tests/auto/render/qattribute/tst_qattribute.cpp20
-rw-r--r--tests/auto/render/qbuffer/tst_qbuffer.cpp10
-rw-r--r--tests/auto/render/qcameraselector/tst_qcameraselector.cpp6
-rw-r--r--tests/auto/render/qclearbuffers/tst_qclearbuffers.cpp4
-rw-r--r--tests/auto/render/qframegraphnode/tst_qframegraphnode.cpp4
-rw-r--r--tests/auto/render/qgeometry/tst_qgeometry.cpp2
-rw-r--r--tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp20
-rw-r--r--tests/auto/render/qmaterial/tst_qmaterial.cpp18
-rw-r--r--tests/auto/render/qobjectpicker/tst_qobjectpicker.cpp2
-rw-r--r--tests/auto/render/qrenderpassfilter/tst_qrenderpassfilter.cpp2
-rw-r--r--tests/auto/render/qrenderstateset/tst_qrenderstateset.cpp2
-rw-r--r--tests/auto/render/qrendertargetselector/tst_qrendertargetselector.cpp8
-rw-r--r--tests/auto/render/qtechniquefilter/tst_qtechniquefilter.cpp2
-rw-r--r--tests/auto/render/qviewport/tst_qviewport.cpp4
-rw-r--r--tests/auto/render/renderpass/tst_renderpass.cpp2
40 files changed, 157 insertions, 157 deletions
diff --git a/tests/auto/core/nodes/tst_nodes.cpp b/tests/auto/core/nodes/tst_nodes.cpp
index 64f01a936..d7249435e 100644
--- a/tests/auto/core/nodes/tst_nodes.cpp
+++ b/tests/auto/core/nodes/tst_nodes.cpp
@@ -31,7 +31,7 @@
#include <Qt3DCore/qentity.h>
#include <Qt3DCore/qcomponent.h>
#include <Qt3DCore/private/qscene_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qcomponentaddedchange.h>
#include <Qt3DCore/qcomponentremovedchange.h>
#include <Qt3DCore/qnodedestroyedchange.h>
@@ -857,7 +857,7 @@ void tst_Nodes::changeCustomProperty()
// THEN
QCOMPARE(spy.events.size(), 1);
QVERIFY(spy.events.first().wasLocked());
- Qt3DCore::QNodePropertyChangePtr event = spy.events.takeFirst().change().dynamicCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr event = spy.events.takeFirst().change().dynamicCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(event->type(), Qt3DCore::PropertyUpdated);
QCOMPARE(event->propertyName(), "customProperty");
QCOMPARE(event->value().toString(), QString("foo"));
diff --git a/tests/auto/core/qchangearbiter/tst_qchangearbiter.cpp b/tests/auto/core/qchangearbiter/tst_qchangearbiter.cpp
index 33c8090e1..4d241cd38 100644
--- a/tests/auto/core/qchangearbiter/tst_qchangearbiter.cpp
+++ b/tests/auto/core/qchangearbiter/tst_qchangearbiter.cpp
@@ -33,7 +33,7 @@
#include <Qt3DCore/private/qpostman_p.h>
#include <Qt3DCore/qcomponentaddedchange.h>
#include <Qt3DCore/qcomponentremovedchange.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
#include <Qt3DCore/qscenechange.h>
@@ -84,7 +84,7 @@ public:
void sendNodeUpdatedNotification()
{
- Qt3DCore::QNodePropertyChangePtr e(new Qt3DCore::QNodePropertyChange(id()));
+ Qt3DCore::QPropertyUpdatedChangePtr e(new Qt3DCore::QPropertyUpdatedChange(id()));
e->setPropertyName("PropertyUpdated");
Qt3DCore::QNodePrivate::get(this)->notifyObservers(e);
}
diff --git a/tests/auto/core/qtransform/tst_qtransform.cpp b/tests/auto/core/qtransform/tst_qtransform.cpp
index 7668e6c67..2b92ffacd 100644
--- a/tests/auto/core/qtransform/tst_qtransform.cpp
+++ b/tests/auto/core/qtransform/tst_qtransform.cpp
@@ -108,9 +108,9 @@ private Q_SLOTS:
QCoreApplication::processEvents();
// THEN
- Qt3DCore::QNodePropertyChangePtr change;
+ Qt3DCore::QPropertyUpdatedChangePtr change;
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "translation");
QCOMPARE(change->value().value<QVector3D>(), QVector3D(454.0f, 427.0f, 383.0f));
@@ -123,7 +123,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "rotation");
QCOMPARE(change->value().value<QQuaternion>(), q);
@@ -135,7 +135,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "scale3D");
QCOMPARE(change->value().value<QVector3D>(), QVector3D(883.0f, 1200.0f, 1340.0f));
@@ -150,13 +150,13 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 3);
- change = arbiter.events.takeFirst().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.takeFirst().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "scale3D");
QCOMPARE(change->value().value<QVector3D>(), QVector3D(1.0f, 1.0f, 1.0f));
- change = arbiter.events.takeFirst().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.takeFirst().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "rotation");
QCOMPARE(change->value().value<QQuaternion>(), QQuaternion());
- change = arbiter.events.takeFirst().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.takeFirst().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "translation");
QCOMPARE(change->value().value<QVector3D>(), QVector3D());
@@ -168,7 +168,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "rotation");
QCOMPARE(change->value().value<QQuaternion>().toEulerAngles().x(), 20.0f);
diff --git a/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp b/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp
index 2589f5b89..26f255d74 100644
--- a/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp
+++ b/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp
@@ -30,11 +30,11 @@
#include <qbackendnodetester.h>
#include <Qt3DCore/private/qnode_p.h>
#include <Qt3DCore/private/qscene_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DInput/private/abstractaxisinput_p.h>
#include <Qt3DInput/QAbstractAxisInput>
#include <Qt3DInput/private/qabstractaxisinput_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include "testdevice.h"
class DummyAxisInput : public Qt3DInput::QAbstractAxisInput
@@ -121,7 +121,7 @@ private Q_SLOTS:
DummyAxisInputBackend backendAxisInput;
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("enabled");
updateChange->setValue(true);
backendAxisInput.sceneChangeEvent(updateChange);
@@ -131,7 +131,7 @@ private Q_SLOTS:
// WHEN
TestDevice device;
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("sourceDevice");
updateChange->setValue(QVariant::fromValue(device.id()));
backendAxisInput.sceneChangeEvent(updateChange);
diff --git a/tests/auto/input/action/tst_action.cpp b/tests/auto/input/action/tst_action.cpp
index 3167ad93e..4fc2cfdc4 100644
--- a/tests/auto/input/action/tst_action.cpp
+++ b/tests/auto/input/action/tst_action.cpp
@@ -30,7 +30,7 @@
#include <qbackendnodetester.h>
#include <Qt3DCore/private/qnode_p.h>
#include <Qt3DCore/private/qscene_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
#include <Qt3DInput/private/action_p.h>
@@ -110,10 +110,10 @@ private Q_SLOTS:
{
// GIVEN
Qt3DInput::Input::Action backendAction;
- Qt3DCore::QNodePropertyChangePtr updateChange;
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange;
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("enabled");
updateChange->setValue(true);
backendAction.sceneChangeEvent(updateChange);
@@ -155,7 +155,7 @@ private Q_SLOTS:
// THEN
QVERIFY(currentActionTriggeredValue != backendAction.actionTriggered());
QCOMPARE(arbiter.events.count(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "active");
QCOMPARE(change->value().toBool(), backendAction.actionTriggered());
diff --git a/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp b/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp
index 47bab244f..7e8a25de4 100644
--- a/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp
+++ b/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp
@@ -30,10 +30,10 @@
#include <qbackendnodetester.h>
#include <Qt3DCore/private/qnode_p.h>
#include <Qt3DCore/private/qscene_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DInput/private/analogaxisinput_p.h>
#include <Qt3DInput/QAnalogAxisInput>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include "testdevice.h"
class tst_AnalogAxisInput: public Qt3DCore::QBackendNodeTester
@@ -96,7 +96,7 @@ private Q_SLOTS:
Qt3DInput::Input::AnalogAxisInput backendAxisInput;
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(32);
updateChange->setPropertyName("axis");
backendAxisInput.sceneChangeEvent(updateChange);
@@ -105,7 +105,7 @@ private Q_SLOTS:
QCOMPARE(backendAxisInput.axis(), 32);
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("enabled");
updateChange->setValue(true);
backendAxisInput.sceneChangeEvent(updateChange);
@@ -115,7 +115,7 @@ private Q_SLOTS:
// WHEN
TestDevice device;
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("sourceDevice");
updateChange->setValue(QVariant::fromValue(device.id()));
backendAxisInput.sceneChangeEvent(updateChange);
diff --git a/tests/auto/input/axis/tst_axis.cpp b/tests/auto/input/axis/tst_axis.cpp
index 192c7311b..d86dc856c 100644
--- a/tests/auto/input/axis/tst_axis.cpp
+++ b/tests/auto/input/axis/tst_axis.cpp
@@ -30,7 +30,7 @@
#include <qbackendnodetester.h>
#include <Qt3DCore/private/qnode_p.h>
#include <Qt3DCore/private/qscene_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
#include <Qt3DInput/private/axis_p.h>
@@ -111,10 +111,10 @@ private Q_SLOTS:
{
// GIVEN
Qt3DInput::Input::Axis backendAxis;
- Qt3DCore::QNodePropertyChangePtr updateChange;
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange;
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("enabled");
updateChange->setValue(true);
backendAxis.sceneChangeEvent(updateChange);
@@ -155,7 +155,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(backendAxis.axisValue(), 454.0f);
QCOMPARE(arbiter.events.count(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "value");
QCOMPARE(change->value().toFloat(), backendAxis.axisValue());
diff --git a/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp b/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp
index 40ba96b40..8d5752154 100644
--- a/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp
+++ b/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp
@@ -30,10 +30,10 @@
#include <qbackendnodetester.h>
#include <Qt3DCore/private/qnode_p.h>
#include <Qt3DCore/private/qscene_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DInput/private/buttonaxisinput_p.h>
#include <Qt3DInput/QButtonAxisInput>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include "testdevice.h"
class tst_ButtonAxisInput: public Qt3DCore::QBackendNodeTester
@@ -101,7 +101,7 @@ private Q_SLOTS:
Qt3DInput::Input::ButtonAxisInput backendAxisInput;
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(QVariant::fromValue(QVector<int>() << 64));
updateChange->setPropertyName("buttons");
backendAxisInput.sceneChangeEvent(updateChange);
@@ -110,7 +110,7 @@ private Q_SLOTS:
QCOMPARE(backendAxisInput.buttons(), QVector<int>() << 64);
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(0.5f);
updateChange->setPropertyName("scale");
backendAxisInput.sceneChangeEvent(updateChange);
@@ -119,7 +119,7 @@ private Q_SLOTS:
QCOMPARE(backendAxisInput.scale(), 0.5f);
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("enabled");
updateChange->setValue(true);
backendAxisInput.sceneChangeEvent(updateChange);
@@ -129,7 +129,7 @@ private Q_SLOTS:
// WHEN
TestDevice device;
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("sourceDevice");
updateChange->setValue(QVariant::fromValue(device.id()));
backendAxisInput.sceneChangeEvent(updateChange);
diff --git a/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp b/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp
index ff81ec437..f0d8aeddd 100644
--- a/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp
+++ b/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp
@@ -75,7 +75,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "sourceDevice");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), device->id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/input/qaction/tst_qaction.cpp b/tests/auto/input/qaction/tst_qaction.cpp
index c391527a6..b2d15b6f6 100644
--- a/tests/auto/input/qaction/tst_qaction.cpp
+++ b/tests/auto/input/qaction/tst_qaction.cpp
@@ -36,7 +36,7 @@
#include <Qt3DInput/private/qaction_p.h>
#include <Qt3DInput/private/qactioninput_p.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
@@ -144,7 +144,7 @@ private Q_SLOTS:
// Note: simulate backend change to frontend
// WHEN
- Qt3DCore::QNodePropertyChangePtr valueChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr valueChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
valueChange->setPropertyName("active");
valueChange->setValue(true);
sceneChangeEvent(valueChange);
diff --git a/tests/auto/input/qactioninput/tst_qactioninput.cpp b/tests/auto/input/qactioninput/tst_qactioninput.cpp
index 34e46cff0..b6920af4d 100644
--- a/tests/auto/input/qactioninput/tst_qactioninput.cpp
+++ b/tests/auto/input/qactioninput/tst_qactioninput.cpp
@@ -104,7 +104,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "buttons");
QCOMPARE(change->value().value<QVector<int>>(), buttons);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -121,7 +121,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "sourceDevice");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), device->id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp b/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp
index 59b5abd5c..0c98b5d55 100644
--- a/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp
+++ b/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp
@@ -100,7 +100,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "axis");
QCOMPARE(change->value().toInt(), 350);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -117,7 +117,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "sourceDevice");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), device->id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/input/qaxis/tst_qaxis.cpp b/tests/auto/input/qaxis/tst_qaxis.cpp
index 3acbd9061..ca4b0d036 100644
--- a/tests/auto/input/qaxis/tst_qaxis.cpp
+++ b/tests/auto/input/qaxis/tst_qaxis.cpp
@@ -35,7 +35,7 @@
#include <Qt3DInput/QAnalogAxisInput>
#include <Qt3DInput/private/qaxis_p.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
@@ -141,7 +141,7 @@ private Q_SLOTS:
// Note: simulate backend change to frontend
// WHEN
- Qt3DCore::QNodePropertyChangePtr valueChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr valueChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
valueChange->setPropertyName("value");
valueChange->setValue(383.0f);
sceneChangeEvent(valueChange);
diff --git a/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp b/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp
index 742eb709e..a71376250 100644
--- a/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp
+++ b/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp
@@ -104,7 +104,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "buttons");
QCOMPARE(change->value().value<QVector<int>>(), buttons);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -117,7 +117,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "scale");
QCOMPARE(change->value().toFloat(), 1340.0f);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -134,7 +134,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "sourceDevice");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), device->id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp b/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp
index b4d0309e5..e50e62bc9 100644
--- a/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp
+++ b/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp
@@ -36,7 +36,7 @@
#include <Qt3DInput/QAxis>
#include <Qt3DInput/QAction>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
diff --git a/tests/auto/render/attribute/tst_attribute.cpp b/tests/auto/render/attribute/tst_attribute.cpp
index 258f9d537..b712bd26a 100644
--- a/tests/auto/render/attribute/tst_attribute.cpp
+++ b/tests/auto/render/attribute/tst_attribute.cpp
@@ -30,7 +30,7 @@
#include <qbackendnodetester.h>
#include <Qt3DRender/private/attribute_p.h>
#include <Qt3DRender/qbuffer.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include "testrenderer.h"
class tst_Attribute : public Qt3DCore::QBackendNodeTester
@@ -137,7 +137,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(static_cast<int>(Qt3DRender::QAttribute::Int));
updateChange->setPropertyName("vertexBaseType");
renderAttribute.sceneChangeEvent(updateChange);
@@ -153,7 +153,7 @@ private Q_SLOTS:
QVERIFY(!renderer.dirtyBits());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(3);
updateChange->setPropertyName("vertexSize");
renderAttribute.sceneChangeEvent(updateChange);
@@ -168,7 +168,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(static_cast<int>(Qt3DRender::QAttribute::IndexAttribute));
updateChange->setPropertyName("attributeType");
renderAttribute.sceneChangeEvent(updateChange);
@@ -183,7 +183,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(1340);
updateChange->setPropertyName("count");
renderAttribute.sceneChangeEvent(updateChange);
@@ -198,7 +198,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(QStringLiteral("L88"));
updateChange->setPropertyName("name");
renderAttribute.sceneChangeEvent(updateChange);
@@ -213,7 +213,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(555);
updateChange->setPropertyName("byteOffset");
renderAttribute.sceneChangeEvent(updateChange);
@@ -228,7 +228,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(454);
updateChange->setPropertyName("byteStride");
renderAttribute.sceneChangeEvent(updateChange);
@@ -243,7 +243,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(1450);
updateChange->setPropertyName("divisor");
renderAttribute.sceneChangeEvent(updateChange);
@@ -258,7 +258,7 @@ private Q_SLOTS:
QVERIFY(!renderAttribute.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
Qt3DCore::QNodeId bufferId = Qt3DCore::QNodeId::createId();
updateChange->setValue(QVariant::fromValue(bufferId));
updateChange->setPropertyName("buffer");
diff --git a/tests/auto/render/buffer/tst_buffer.cpp b/tests/auto/render/buffer/tst_buffer.cpp
index 7a0619f1b..0fbd7b0cf 100644
--- a/tests/auto/render/buffer/tst_buffer.cpp
+++ b/tests/auto/render/buffer/tst_buffer.cpp
@@ -30,7 +30,7 @@
#include <qbackendnodetester.h>
#include <Qt3DRender/private/buffer_p.h>
#include <Qt3DRender/private/buffermanager_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/private/qbackendnode_p.h>
#include "testpostmanarbiter.h"
#include "testrenderer.h"
@@ -137,7 +137,7 @@ private Q_SLOTS:
QVERIFY(!renderBuffer.isDirty());
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(static_cast<int>(Qt3DRender::QBuffer::IndexBuffer));
updateChange->setPropertyName("type");
renderBuffer.sceneChangeEvent(updateChange);
@@ -151,7 +151,7 @@ private Q_SLOTS:
QVERIFY(!renderBuffer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(static_cast<int>(Qt3DRender::QBuffer::DynamicRead));
updateChange->setPropertyName("usage");
renderBuffer.sceneChangeEvent(updateChange);
@@ -164,7 +164,7 @@ private Q_SLOTS:
QVERIFY(!renderBuffer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(QByteArrayLiteral("LS9"));
updateChange->setPropertyName("data");
renderBuffer.sceneChangeEvent(updateChange);
@@ -180,7 +180,7 @@ private Q_SLOTS:
// WHEN
Qt3DRender::QBufferDataGeneratorPtr functor(new TestFunctor(355));
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(QVariant::fromValue(functor));
updateChange->setPropertyName("dataGenerator");
renderBuffer.sceneChangeEvent(updateChange);
@@ -193,7 +193,7 @@ private Q_SLOTS:
QVERIFY(!renderBuffer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(true);
updateChange->setPropertyName("syncData");
renderBuffer.sceneChangeEvent(updateChange);
@@ -209,7 +209,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.count(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "data");
QCOMPARE(change->value().toByteArray(), QByteArrayLiteral("454"));
diff --git a/tests/auto/render/commons/testpostmanarbiter.h b/tests/auto/render/commons/testpostmanarbiter.h
index 96b330167..2861801e5 100644
--- a/tests/auto/render/commons/testpostmanarbiter.h
+++ b/tests/auto/render/commons/testpostmanarbiter.h
@@ -28,7 +28,7 @@
#include <Qt3DCore/private/qpostman_p.h>
#include <Qt3DCore/private/qchangearbiter_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/render/entity/tst_entity.cpp b/tests/auto/render/entity/tst_entity.cpp
index 735679021..fad49fd99 100644
--- a/tests/auto/render/entity/tst_entity.cpp
+++ b/tests/auto/render/entity/tst_entity.cpp
@@ -30,7 +30,7 @@
#include <Qt3DRender/private/entity_p.h>
#include <Qt3DRender/QCameraLens>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QComponentAddedChange>
#include <Qt3DCore/QComponentRemovedChange>
#include <Qt3DCore/QTransform>
diff --git a/tests/auto/render/geometry/tst_geometry.cpp b/tests/auto/render/geometry/tst_geometry.cpp
index 48be2c58d..f852e106e 100644
--- a/tests/auto/render/geometry/tst_geometry.cpp
+++ b/tests/auto/render/geometry/tst_geometry.cpp
@@ -31,7 +31,7 @@
#include <Qt3DRender/private/geometry_p.h>
#include <Qt3DRender/qgeometry.h>
#include <Qt3DRender/qattribute.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
#include "testrenderer.h"
@@ -149,7 +149,7 @@ private Q_SLOTS:
// WHEN
const Qt3DCore::QNodeId boundingAttrId = Qt3DCore::QNodeId::createId();
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(QVariant::fromValue(boundingAttrId));
updateChange->setPropertyName("boundingVolumePositionAttribute");
renderGeometry.sceneChangeEvent(updateChange);
diff --git a/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp b/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp
index f21db5162..c29e15d14 100644
--- a/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp
+++ b/tests/auto/render/geometryrenderer/tst_geometryrenderer.cpp
@@ -32,7 +32,7 @@
#include <Qt3DRender/private/geometryrenderermanager_p.h>
#include <Qt3DRender/qgeometry.h>
#include <Qt3DRender/qgeometryfactory.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
#include "testrenderer.h"
@@ -183,7 +183,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("instanceCount");
updateChange->setValue(2);
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -197,7 +197,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("vertexCount");
updateChange->setValue(56);
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -210,7 +210,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("indexOffset");
updateChange->setValue(65);
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -223,7 +223,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("firstInstance");
updateChange->setValue(82);
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -236,7 +236,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("restartIndexValue");
updateChange->setValue(46);
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -249,7 +249,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("primitiveRestartEnabled");
updateChange->setValue(true);
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -262,7 +262,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("primitiveType");
updateChange->setValue(static_cast<int>(Qt3DRender::QGeometryRenderer::LineLoop));
renderGeometryRenderer.sceneChangeEvent(updateChange);
@@ -275,7 +275,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setPropertyName("geometryFactory");
Qt3DRender::QGeometryFactoryPtr factory(new TestFactory(1450));
updateChange->setValue(QVariant::fromValue(factory));
@@ -315,7 +315,7 @@ private Q_SLOTS:
QVERIFY(!renderGeometryRenderer.isDirty());
// WHEN
- updateChange.reset(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(QVariant::fromValue(true));
updateChange->setPropertyName("enabled");
renderGeometryRenderer.sceneChangeEvent(updateChange);
diff --git a/tests/auto/render/material/tst_material.cpp b/tests/auto/render/material/tst_material.cpp
index 59dcfbfe3..02b35d13e 100644
--- a/tests/auto/render/material/tst_material.cpp
+++ b/tests/auto/render/material/tst_material.cpp
@@ -33,7 +33,7 @@
#include <Qt3DRender/QMaterial>
#include <Qt3DRender/QParameter>
#include <Qt3DRender/QEffect>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
#include "testrenderer.h"
@@ -164,7 +164,7 @@ void tst_RenderMaterial::shouldHandleEnablePropertyChange()
backend.setRenderer(&renderer);
// WHEN
- QNodePropertyChangePtr updateChange(new QNodePropertyChange(QNodeId()));
+ QPropertyUpdatedChangePtr updateChange(new QPropertyUpdatedChange(QNodeId()));
updateChange->setValue(true);
updateChange->setPropertyName("enabled");
backend.sceneChangeEvent(updateChange);
@@ -174,7 +174,7 @@ void tst_RenderMaterial::shouldHandleEnablePropertyChange()
QVERIFY(renderer.dirtyBits() != 0);
// WHEN
- QNodePropertyChangePtr secondUpdateChange(new QNodePropertyChange(QNodeId()));
+ QPropertyUpdatedChangePtr secondUpdateChange(new QPropertyUpdatedChange(QNodeId()));
secondUpdateChange->setValue(false);
secondUpdateChange->setPropertyName("enabled");
backend.sceneChangeEvent(secondUpdateChange);
@@ -192,7 +192,7 @@ void tst_RenderMaterial::shouldHandleEffectPropertyChange()
backend.setRenderer(&renderer);
// WHEN
- QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
Qt3DCore::QNodeId effectId = Qt3DCore::QNodeId::createId();
updateChange->setValue(QVariant::fromValue(effectId));
updateChange->setPropertyName("effect");
diff --git a/tests/auto/render/objectpicker/tst_objectpicker.cpp b/tests/auto/render/objectpicker/tst_objectpicker.cpp
index 386aa8fa0..c42ec60c9 100644
--- a/tests/auto/render/objectpicker/tst_objectpicker.cpp
+++ b/tests/auto/render/objectpicker/tst_objectpicker.cpp
@@ -32,7 +32,7 @@
#include <Qt3DRender/qpickevent.h>
#include <Qt3DRender/qobjectpicker.h>
#include <Qt3DCore/private/qbackendnode_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include "testpostmanarbiter.h"
#include "testrenderer.h"
@@ -90,7 +90,7 @@ private Q_SLOTS:
QVERIFY(!objectPicker.isDirty());
// WHEN
- Qt3DCore::QNodePropertyChangePtr updateChange(new Qt3DCore::QNodePropertyChange(Qt3DCore::QNodeId()));
+ Qt3DCore::QPropertyUpdatedChangePtr updateChange(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId()));
updateChange->setValue(true);
updateChange->setPropertyName("hoverEnabled");
objectPicker.sceneChangeEvent(updateChange);
@@ -118,7 +118,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.count(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "pressed");
arbiter.events.clear();
@@ -128,7 +128,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.count(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "released");
arbiter.events.clear();
@@ -138,7 +138,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.count(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "clicked");
arbiter.events.clear();
@@ -148,7 +148,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.count(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "entered");
arbiter.events.clear();
@@ -158,7 +158,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.count(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "exited");
arbiter.events.clear();
diff --git a/tests/auto/render/picking/tst_picking.cpp b/tests/auto/render/picking/tst_picking.cpp
index b4c7fedcd..6185b50c0 100644
--- a/tests/auto/render/picking/tst_picking.cpp
+++ b/tests/auto/render/picking/tst_picking.cpp
@@ -29,7 +29,7 @@
#include <QtTest/QtTest>
#include <Qt3DCore/qentity.h>
#include <Qt3DCore/qtransform.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DRender/private/qboundingvolumeprovider_p.h>
#include <Qt3DRender/private/pickboundingvolumejob_p.h>
#include <Qt3DRender/private/objectpicker_p.h>
diff --git a/tests/auto/render/qabstractlight/tst_qabstractlight.cpp b/tests/auto/render/qabstractlight/tst_qabstractlight.cpp
index aa8599432..c85fcde6b 100644
--- a/tests/auto/render/qabstractlight/tst_qabstractlight.cpp
+++ b/tests/auto/render/qabstractlight/tst_qabstractlight.cpp
@@ -153,12 +153,12 @@ private Q_SLOTS:
QCOMPARE(lightArbiter.events.size(), 2 * 2); // Due to contained shader data
for (int i = 0; i < 2; i++)
lightArbiter.events.removeAt(i);
- Qt3DCore::QNodePropertyChangePtr change = lightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = lightArbiter.events[0].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), light->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::red));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = lightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = lightArbiter.events[1].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), light->id());
QCOMPARE(change->value().value<float>(), 0.5f);
@@ -189,22 +189,22 @@ private Q_SLOTS:
QCOMPARE(pointLightArbiter.events.size(), 4 * 2); // Due to contained shader data
for (int i = 0; i < 4; i++)
pointLightArbiter.events.removeAt(i);
- Qt3DCore::QNodePropertyChangePtr change = pointLightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = pointLightArbiter.events[0].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::green));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = pointLightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = pointLightArbiter.events[1].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = pointLightArbiter.events[2].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = pointLightArbiter.events[2].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "constantAttenuation");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = pointLightArbiter.events[3].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = pointLightArbiter.events[3].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "quadraticAttenuation");
QCOMPARE(change->subjectId(), pointLight->id());
QCOMPARE(change->value().value<float>(), 1.0f);
@@ -226,17 +226,17 @@ private Q_SLOTS:
QCOMPARE(dirLightArbiter.events.size(), 3 * 2); // Due to contained shader data
for (int i = 0; i < 3; i++)
dirLightArbiter.events.removeAt(i);
- Qt3DCore::QNodePropertyChangePtr change = dirLightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = dirLightArbiter.events[0].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), dirLight->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::blue));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = dirLightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = dirLightArbiter.events[1].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), dirLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = dirLightArbiter.events[2].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = dirLightArbiter.events[2].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "worldDirection");
QCOMPARE(change->subjectId(), dirLight->id());
QCOMPARE(change->value().value<QVector3D>(), QVector3D(0.5f, 0.0f, -1.0f));
@@ -259,22 +259,22 @@ private Q_SLOTS:
QCOMPARE(spotLightArbiter.events.size(), 4 * 2); // Due to contained shader data
for (int i = 0; i < 4; i++)
spotLightArbiter.events.removeAt(i);
- Qt3DCore::QNodePropertyChangePtr change = spotLightArbiter.events[0].staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = spotLightArbiter.events[0].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "color");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<QColor>(), QColor(Qt::lightGray));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = spotLightArbiter.events[1].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = spotLightArbiter.events[1].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "intensity");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<float>(), 0.5f);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
- change = spotLightArbiter.events[2].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = spotLightArbiter.events[2].staticCast<Qt3DCore::QPropertyUpdatedChange>();
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::PropertyUpdated);
- change = spotLightArbiter.events[3].staticCast<Qt3DCore::QNodePropertyChange>();
+ change = spotLightArbiter.events[3].staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "cutOffAngle");
QCOMPARE(change->subjectId(), spotLight->id());
QCOMPARE(change->value().value<float>(), 0.75f);
diff --git a/tests/auto/render/qattribute/tst_qattribute.cpp b/tests/auto/render/qattribute/tst_qattribute.cpp
index 2d143a00c..9632f4fcb 100644
--- a/tests/auto/render/qattribute/tst_qattribute.cpp
+++ b/tests/auto/render/qattribute/tst_qattribute.cpp
@@ -124,7 +124,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "vertexBaseType");
QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DRender::QAttribute::Double));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -137,7 +137,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "vertexSize");
QCOMPARE(change->value().value<uint>(), 4U);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -150,7 +150,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "name");
QCOMPARE(change->value().value<QString>(), QStringLiteral("Duntov"));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -163,7 +163,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "count");
QCOMPARE(change->value().value<uint>(), 883U);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -176,7 +176,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "byteStride");
QCOMPARE(change->value().value<uint>(), 1340U);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -189,7 +189,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "byteOffset");
QCOMPARE(change->value().value<uint>(), 1584U);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -202,7 +202,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "divisor");
QCOMPARE(change->value().value<uint>(), 1450U);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -215,7 +215,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "attributeType");
QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DRender::QAttribute::IndexAttribute));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -229,7 +229,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "buffer");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), buf.id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -243,7 +243,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "buffer");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), buf2.id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/render/qbuffer/tst_qbuffer.cpp b/tests/auto/render/qbuffer/tst_qbuffer.cpp
index ab28ca07b..566f16f13 100644
--- a/tests/auto/render/qbuffer/tst_qbuffer.cpp
+++ b/tests/auto/render/qbuffer/tst_qbuffer.cpp
@@ -134,7 +134,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "type");
QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DRender::QBuffer::IndexBuffer));
@@ -146,7 +146,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "usage");
QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DRender::QBuffer::DynamicCopy));
@@ -158,7 +158,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "data");
QCOMPARE(change->value().value<QByteArray>(), QByteArrayLiteral("Z28"));
@@ -171,7 +171,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "dataGenerator");
QCOMPARE(change->value().value<Qt3DRender::QBufferDataGeneratorPtr>(), functor);
@@ -183,7 +183,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "syncData");
QCOMPARE(change->value().toBool(), true);
diff --git a/tests/auto/render/qcameraselector/tst_qcameraselector.cpp b/tests/auto/render/qcameraselector/tst_qcameraselector.cpp
index ecbea52b6..ca6895f90 100644
--- a/tests/auto/render/qcameraselector/tst_qcameraselector.cpp
+++ b/tests/auto/render/qcameraselector/tst_qcameraselector.cpp
@@ -95,7 +95,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "camera");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), camera->id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -116,7 +116,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "camera");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), camera2->id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -128,7 +128,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "camera");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), Qt3DCore::QNodeId());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/render/qclearbuffers/tst_qclearbuffers.cpp b/tests/auto/render/qclearbuffers/tst_qclearbuffers.cpp
index 9e471d0fa..e190d3c96 100644
--- a/tests/auto/render/qclearbuffers/tst_qclearbuffers.cpp
+++ b/tests/auto/render/qclearbuffers/tst_qclearbuffers.cpp
@@ -107,7 +107,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "buffers");
QCOMPARE(change->subjectId(), clearBuffer->id());
QCOMPARE(change->value().value<Qt3DRender::QClearBuffers::BufferType>(), Qt3DRender::QClearBuffers::AllBuffers);
@@ -128,7 +128,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "buffers");
QCOMPARE(change->subjectId(), clearBuffer->id());
QCOMPARE(change->value().value<Qt3DRender::QClearBuffers::BufferType>(), Qt3DRender::QClearBuffers::ColorDepthBuffer);
diff --git a/tests/auto/render/qframegraphnode/tst_qframegraphnode.cpp b/tests/auto/render/qframegraphnode/tst_qframegraphnode.cpp
index 2d1bc1360..17f7e8546 100644
--- a/tests/auto/render/qframegraphnode/tst_qframegraphnode.cpp
+++ b/tests/auto/render/qframegraphnode/tst_qframegraphnode.cpp
@@ -111,7 +111,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "enabled");
QCOMPARE(change->subjectId(), frameGraphNode->id());
QCOMPARE(change->value().toBool(), false);
@@ -132,7 +132,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "enabled");
QCOMPARE(change->subjectId(), frameGraphNode->id());
QCOMPARE(change->value().toBool(), true);
diff --git a/tests/auto/render/qgeometry/tst_qgeometry.cpp b/tests/auto/render/qgeometry/tst_qgeometry.cpp
index b85798245..8b1e6cd2d 100644
--- a/tests/auto/render/qgeometry/tst_qgeometry.cpp
+++ b/tests/auto/render/qgeometry/tst_qgeometry.cpp
@@ -36,7 +36,7 @@
#include <Qt3DRender/qattribute.h>
#include <Qt3DRender/qbuffer.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
diff --git a/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp b/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp
index 4c2835ef2..238de813f 100644
--- a/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp
+++ b/tests/auto/render/qgeometryrenderer/tst_qgeometryrenderer.cpp
@@ -38,7 +38,7 @@
#include <Qt3DRender/qbuffer.h>
#include <Qt3DRender/private/qgeometryrenderer_p.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
@@ -159,7 +159,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "instanceCount");
QCOMPARE(change->value().value<int>(), 256);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -172,7 +172,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "vertexCount");
QCOMPARE(change->value().value<int>(), 1340);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -185,7 +185,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "indexOffset");
QCOMPARE(change->value().value<int>(), 883);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -198,7 +198,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "firstInstance");
QCOMPARE(change->value().value<int>(), 1200);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -211,7 +211,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "restartIndexValue");
QCOMPARE(change->value().value<int>(), 65535);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -224,7 +224,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "verticesPerPatch");
QCOMPARE(change->value().toInt(), 2);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -237,7 +237,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "primitiveRestartEnabled");
QCOMPARE(change->value().value<bool>(), true);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -250,7 +250,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "primitiveType");
QCOMPARE(change->value().value<int>(), static_cast<int>(Qt3DRender::QGeometryRenderer::Patches));
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -264,7 +264,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "geometryFactory");
QCOMPARE(change->value().value<Qt3DRender::QGeometryFactoryPtr>(), factory);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/render/qmaterial/tst_qmaterial.cpp b/tests/auto/render/qmaterial/tst_qmaterial.cpp
index 6c0e19c1c..288e870d7 100644
--- a/tests/auto/render/qmaterial/tst_qmaterial.cpp
+++ b/tests/auto/render/qmaterial/tst_qmaterial.cpp
@@ -27,7 +27,7 @@
****************************************************************************/
#include <QtTest/QTest>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
#include <Qt3DCore/private/qnode_p.h>
@@ -256,7 +256,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "effect");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), effect.id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -278,7 +278,7 @@ private Q_SLOTS:
// THEN
qDebug() << Q_FUNC_INFO << arbiter2.events.size();
QCOMPARE(arbiter2.events.size(), 1);
- change = arbiter2.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter2.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "effect");
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), effect.id());
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -371,7 +371,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "vertexShaderCode");
QCOMPARE(change->value().value<QByteArray>(), vertexCode);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -385,7 +385,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "fragmentShaderCode");
QCOMPARE(change->value().value<QByteArray>(), fragmentCode);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -399,7 +399,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "geometryShaderCode");
QCOMPARE(change->value().value<QByteArray>(), geometryCode);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -413,7 +413,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "computeShaderCode");
QCOMPARE(change->value().value<QByteArray>(), computeCode);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -427,7 +427,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "tessellationControlShaderCode");
QCOMPARE(change->value().value<QByteArray>(), tesselControlCode);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
@@ -441,7 +441,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "tessellationEvaluationShaderCode");
QCOMPARE(change->value().value<QByteArray>(), tesselEvalCode);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/render/qobjectpicker/tst_qobjectpicker.cpp b/tests/auto/render/qobjectpicker/tst_qobjectpicker.cpp
index 291193d1f..a7f4e8bb6 100644
--- a/tests/auto/render/qobjectpicker/tst_qobjectpicker.cpp
+++ b/tests/auto/render/qobjectpicker/tst_qobjectpicker.cpp
@@ -113,7 +113,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.last().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.last().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "hoverEnabled");
QCOMPARE(change->value().toBool(), true);
QCOMPARE(change->type(), Qt3DCore::PropertyUpdated);
diff --git a/tests/auto/render/qrenderpassfilter/tst_qrenderpassfilter.cpp b/tests/auto/render/qrenderpassfilter/tst_qrenderpassfilter.cpp
index 753977dc1..b9f3974e9 100644
--- a/tests/auto/render/qrenderpassfilter/tst_qrenderpassfilter.cpp
+++ b/tests/auto/render/qrenderpassfilter/tst_qrenderpassfilter.cpp
@@ -37,7 +37,7 @@
#include <Qt3DRender/qparameter.h>
#include <Qt3DRender/qfilterkey.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
diff --git a/tests/auto/render/qrenderstateset/tst_qrenderstateset.cpp b/tests/auto/render/qrenderstateset/tst_qrenderstateset.cpp
index a11d0c193..0868e023c 100644
--- a/tests/auto/render/qrenderstateset/tst_qrenderstateset.cpp
+++ b/tests/auto/render/qrenderstateset/tst_qrenderstateset.cpp
@@ -37,7 +37,7 @@
#include <Qt3DRender/qrenderstate.h>
#include <Qt3DRender/private/qrenderstateset_p.h>
-#include <Qt3DCore/qnodepropertychange.h>
+#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/qnodeaddedpropertychange.h>
#include <Qt3DCore/qnoderemovedpropertychange.h>
diff --git a/tests/auto/render/qrendertargetselector/tst_qrendertargetselector.cpp b/tests/auto/render/qrendertargetselector/tst_qrendertargetselector.cpp
index 63fabf5b6..b4cb479ba 100644
--- a/tests/auto/render/qrendertargetselector/tst_qrendertargetselector.cpp
+++ b/tests/auto/render/qrendertargetselector/tst_qrendertargetselector.cpp
@@ -117,7 +117,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "target");
QCOMPARE(change->subjectId(), renderTargetSelector->id());
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), target->id());
@@ -138,7 +138,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "target");
QCOMPARE(change->subjectId(), renderTargetSelector->id());
QCOMPARE(change->value().value<Qt3DCore::QNodeId>(), Qt3DCore::QNodeId());
@@ -154,7 +154,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "outputs");
QCOMPARE(change->subjectId(), renderTargetSelector->id());
QCOMPARE(change->value().value<QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint> >(), outputs);
@@ -175,7 +175,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "outputs");
QCOMPARE(change->subjectId(), renderTargetSelector->id());
QCOMPARE(change->value().value<QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint> >(), QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint>());
diff --git a/tests/auto/render/qtechniquefilter/tst_qtechniquefilter.cpp b/tests/auto/render/qtechniquefilter/tst_qtechniquefilter.cpp
index 027637934..f60046267 100644
--- a/tests/auto/render/qtechniquefilter/tst_qtechniquefilter.cpp
+++ b/tests/auto/render/qtechniquefilter/tst_qtechniquefilter.cpp
@@ -37,7 +37,7 @@
#include <Qt3DRender/qparameter.h>
#include <Qt3DRender/qfilterkey.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>
diff --git a/tests/auto/render/qviewport/tst_qviewport.cpp b/tests/auto/render/qviewport/tst_qviewport.cpp
index ca2a8bd0f..9ea758fcf 100644
--- a/tests/auto/render/qviewport/tst_qviewport.cpp
+++ b/tests/auto/render/qviewport/tst_qviewport.cpp
@@ -96,7 +96,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- Qt3DCore::QNodePropertyChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ Qt3DCore::QPropertyUpdatedChangePtr change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "normalizedRect");
QCOMPARE(change->subjectId(), viewport->id());
QCOMPARE(change->value().value<QRectF>(), QRectF(0.5f, 0.5f, 1.0f, 1.0f));
@@ -117,7 +117,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(arbiter.events.size(), 1);
- change = arbiter.events.first().staticCast<Qt3DCore::QNodePropertyChange>();
+ change = arbiter.events.first().staticCast<Qt3DCore::QPropertyUpdatedChange>();
QCOMPARE(change->propertyName(), "normalizedRect");
QCOMPARE(change->subjectId(), viewport->id());
QCOMPARE(change->value().value<QRectF>(), QRectF(0.0f, 0.0f, 1.0f, 1.0f));
diff --git a/tests/auto/render/renderpass/tst_renderpass.cpp b/tests/auto/render/renderpass/tst_renderpass.cpp
index 38887bb80..8c48922be 100644
--- a/tests/auto/render/renderpass/tst_renderpass.cpp
+++ b/tests/auto/render/renderpass/tst_renderpass.cpp
@@ -30,7 +30,7 @@
#include <qbackendnodetester.h>
#include <Qt3DRender/private/renderpass_p.h>
-#include <Qt3DCore/QNodePropertyChange>
+#include <Qt3DCore/QPropertyUpdatedChange>
#include <Qt3DCore/QNodeAddedPropertyChange>
#include <Qt3DCore/QNodeRemovedPropertyChange>