summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qaction.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-04-21 14:27:25 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-04-21 14:50:56 +0000
commitedfe8aa925598e0961411f27e14acf44a369c923 (patch)
treea0160ef1eb42ac0e1cd2cb2523379e95cb0e2dc0 /src/input/frontend/qaction.cpp
parente52d11ef2a9ba8bfceb738a3b1c4c7c9a63f5000 (diff)
Rename QScenePropertyChange -> QNodePropertyChange
Trying to unify naming of change types. Change-Id: I0bfca0b7ba5adeaaa6145f75ddb41731f76adc09 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/frontend/qaction.cpp')
-rw-r--r--src/input/frontend/qaction.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/frontend/qaction.cpp b/src/input/frontend/qaction.cpp
index 654c7ba05..79a72fcf5 100644
--- a/src/input/frontend/qaction.cpp
+++ b/src/input/frontend/qaction.cpp
@@ -40,7 +40,7 @@
#include "qaction.h"
#include "qaction_p.h"
#include <Qt3DCore/private/qnode_p.h>
-#include <Qt3DCore/qscenepropertychange.h>
+#include <Qt3DCore/qnodepropertychange.h>
#include <Qt3DCore/qnodecreatedchange.h>
#include <Qt3DInput/qabstractactioninput.h>
@@ -127,7 +127,7 @@ void QAction::addInput(QAbstractActionInput *input)
input->setParent(this);
if (d->m_changeArbiter != Q_NULLPTR) {
- Qt3DCore::QScenePropertyChangePtr change(new Qt3DCore::QScenePropertyChange(Qt3DCore::NodeAdded, Qt3DCore::QSceneChange::Node, id()));
+ Qt3DCore::QNodePropertyChangePtr change(new Qt3DCore::QNodePropertyChange(Qt3DCore::NodeAdded, Qt3DCore::QSceneChange::Node, id()));
change->setPropertyName("input");
change->setValue(QVariant::fromValue(input->id()));
d->notifyObservers(change);
@@ -144,7 +144,7 @@ void QAction::removeInput(QAbstractActionInput *input)
if (d->m_inputs.contains(input)) {
if (d->m_changeArbiter != Q_NULLPTR) {
- Qt3DCore::QScenePropertyChangePtr change(new Qt3DCore::QScenePropertyChange(Qt3DCore::NodeRemoved, Qt3DCore::QSceneChange::Node, id()));
+ Qt3DCore::QNodePropertyChangePtr change(new Qt3DCore::QNodePropertyChange(Qt3DCore::NodeRemoved, Qt3DCore::QSceneChange::Node, id()));
change->setPropertyName("input");
change->setValue(QVariant::fromValue(input->id()));
d->notifyObservers(change);
@@ -174,7 +174,7 @@ void QAction::copy(const Qt3DCore::QNode *ref)
void QAction::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)
{
Q_D(QAction);
- Qt3DCore::QScenePropertyChangePtr e = qSharedPointerCast<Qt3DCore::QScenePropertyChange>(change);
+ Qt3DCore::QNodePropertyChangePtr e = qSharedPointerCast<Qt3DCore::QNodePropertyChange>(change);
if (e->type() == Qt3DCore::NodeUpdated && e->propertyName() == QByteArrayLiteral("active")) {
d->setActive(e->value().toBool());
}