summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/input/frontend/qabstractphysicaldevice.cpp7
-rw-r--r--src/input/frontend/qabstractphysicaldevice.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/input/frontend/qabstractphysicaldevice.cpp b/src/input/frontend/qabstractphysicaldevice.cpp
index 6f13f0892..018fecc8d 100644
--- a/src/input/frontend/qabstractphysicaldevice.cpp
+++ b/src/input/frontend/qabstractphysicaldevice.cpp
@@ -39,6 +39,7 @@
#include "qabstractphysicaldevice.h"
#include "qabstractphysicaldevice_p.h"
+#include <Qt3DInput/qphysicaldevicecreatedchange.h>
#include <Qt3DCore/qscenepropertychange.h>
#include <Qt3DCore/private/qnode_p.h>
@@ -215,6 +216,12 @@ void QAbstractPhysicalDevice::copy(const QNode *ref)
d_func()->m_buttonsHash = physicalDevice->d_func()->m_buttonsHash;
}
+Qt3DCore::QNodeCreatedChangeBasePtr QAbstractPhysicalDevice::createNodeCreationChange() const
+{
+ auto creationChange = QPhysicalDeviceCreatedChangeBasePtr::create(this);
+ return creationChange;
+}
+
}
QT_END_NAMESPACE
diff --git a/src/input/frontend/qabstractphysicaldevice.h b/src/input/frontend/qabstractphysicaldevice.h
index 8e7e1a333..00a63883a 100644
--- a/src/input/frontend/qabstractphysicaldevice.h
+++ b/src/input/frontend/qabstractphysicaldevice.h
@@ -76,6 +76,7 @@ protected:
QAbstractPhysicalDevice(QAbstractPhysicalDevicePrivate &dd, Qt3DCore::QNode *parent = 0);
Q_DECLARE_PRIVATE(QAbstractPhysicalDevice)
void copy(const Qt3DCore::QNode *ref) Q_DECL_OVERRIDE;
+ Qt3DCore::QNodeCreatedChangeBasePtr createNodeCreationChange() const Q_DECL_OVERRIDE;
};
} // Qt3DInput