diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-03-14 13:06:57 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-03-22 18:16:20 +0000 |
commit | 75b32cbd68ac38bd57aaa2c038d1ecf947f98fd4 (patch) | |
tree | f7c7263742a5417570e20e9937f3011782eb3e15 /src/input/frontend/qmousedevice.cpp | |
parent | e1cc734f83c9ae822360c98016121a259ecff4ca (diff) |
QMouseDevice creates creation changes
Task-number: QTBUG-51835
Change-Id: I4a47579b7a63ed4f3209b564e99a348c1a625f85
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/frontend/qmousedevice.cpp')
-rw-r--r-- | src/input/frontend/qmousedevice.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/input/frontend/qmousedevice.cpp b/src/input/frontend/qmousedevice.cpp index b2af501ca..a71a11199 100644 --- a/src/input/frontend/qmousedevice.cpp +++ b/src/input/frontend/qmousedevice.cpp @@ -39,10 +39,9 @@ #include "qmousedevice.h" #include "qmousedevice_p.h" - +#include <Qt3DCore/qnodecreatedchange.h> #include <Qt3DCore/qentity.h> - QT_BEGIN_NAMESPACE namespace Qt3DInput { @@ -149,6 +148,17 @@ void QMouseDevice::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) // TODO: To be completed as the mouse input aspect takes shape } +Qt3DCore::QNodeCreatedChangeBasePtr QMouseDevice::createNodeCreationChange() const +{ + auto creationChange = Qt3DCore::QNodeCreatedChangePtr<QMouseDeviceData>::create(this); + auto &data = creationChange->data; + + Q_D(const QMouseDevice); + data.sensitivity = d->m_sensitivity; + + return creationChange; +} + } // namespace Qt3DInput QT_END_NAMESPACE |