summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-04-02 11:03:14 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-04-12 12:43:50 +0000
commitc598dfdbec92963ec4e7107a5f266f119fd09214 (patch)
tree390dd1f3fb2664534fd10e0cb958e9a42251f97b
parent66778838c3c474346f8c3a668a1b52a35fcf6ed7 (diff)
QAbstractPhysicalDevice creates creation changes
Change-Id: I3b753b529f7cae5b839620598a8414fb78589451 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-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