summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qlogicaldevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/frontend/qlogicaldevice.cpp')
-rw-r--r--src/input/frontend/qlogicaldevice.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/input/frontend/qlogicaldevice.cpp b/src/input/frontend/qlogicaldevice.cpp
index 44e04baa8..cf723f9aa 100644
--- a/src/input/frontend/qlogicaldevice.cpp
+++ b/src/input/frontend/qlogicaldevice.cpp
@@ -40,7 +40,6 @@
#include "qlogicaldevice.h"
#include "qlogicaldevice_p.h"
-#include <Qt3DCore/qnodecreatedchange.h>
#include <Qt3DInput/qaction.h>
#include <Qt3DInput/qaxis.h>
@@ -173,7 +172,7 @@ void QLogicalDevice::addAction(QAction *action)
// Ensures proper bookkeeping
d->registerDestructionHelper(action, &QLogicalDevice::removeAction, d->m_actions);
- d->updateNode(action, "action", Qt3DCore::PropertyValueAdded);
+ d->update();
}
}
@@ -184,7 +183,7 @@ void QLogicalDevice::removeAction(QAction *action)
{
Q_D(QLogicalDevice);
if (d->m_actions.contains(action)) {
- d->updateNode(action, "action", Qt3DCore::PropertyValueRemoved);
+ d->update();
d->m_actions.removeOne(action);
@@ -224,7 +223,7 @@ void QLogicalDevice::addAxis(QAxis *axis)
// Ensures proper bookkeeping
d->registerDestructionHelper(axis, &QLogicalDevice::removeAxis, d->m_axes);
- d->updateNode(axis, "axis", Qt3DCore::PropertyValueAdded);
+ d->update();
}
}
@@ -235,7 +234,7 @@ void QLogicalDevice::removeAxis(QAxis *axis)
{
Q_D(QLogicalDevice);
if (d->m_axes.contains(axis)) {
- d->updateNode(axis, "axis", Qt3DCore::PropertyValueRemoved);
+ d->update();
d->m_axes.removeOne(axis);
@@ -253,15 +252,6 @@ QVector<QAxis *> QLogicalDevice::axes() const
return d->m_axes;
}
-Qt3DCore::QNodeCreatedChangeBasePtr QLogicalDevice::createNodeCreationChange() const
-{
- auto creationChange = Qt3DCore::QNodeCreatedChangePtr<QLogicalDeviceData>::create(this);
- auto &data = creationChange->data;
- data.actionIds = qIdsForNodes(actions());
- data.axisIds = qIdsForNodes(axes());
- return creationChange;
-}
-
} // Qt3DInput
QT_END_NAMESPACE