diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2015-12-21 09:23:06 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-12-21 09:08:24 +0000 |
commit | 238f5639bac66f39883cb7d6537ee7bcf88e085e (patch) | |
tree | 0247ca2f1a108dff56d0fcea0bea2f84fa194b83 /src/input/frontend | |
parent | 020412c0e3f41132d30e7db94e6a12e95553c5e0 (diff) |
Allow device integration impls to see the aspect
Change-Id: I257ecd56a454ba7ad969859fad94fc45a8e729c4
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend')
-rw-r--r-- | src/input/frontend/qinputdeviceintegration.cpp | 6 | ||||
-rw-r--r-- | src/input/frontend/qinputdeviceintegration.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/input/frontend/qinputdeviceintegration.cpp b/src/input/frontend/qinputdeviceintegration.cpp index 412b724f9..d8cc67bc8 100644 --- a/src/input/frontend/qinputdeviceintegration.cpp +++ b/src/input/frontend/qinputdeviceintegration.cpp @@ -72,6 +72,12 @@ void QInputDeviceIntegration::initialize(QInputAspect *aspect) onInitialize(); } +QInputAspect *QInputDeviceIntegration::inputAspect() const +{ + Q_D(const QInputDeviceIntegration); + return d->m_aspect; +} + } // namespace Qt3DInput QT_END_NAMESPACE diff --git a/src/input/frontend/qinputdeviceintegration.h b/src/input/frontend/qinputdeviceintegration.h index 5907ed867..2ea8ea1ae 100644 --- a/src/input/frontend/qinputdeviceintegration.h +++ b/src/input/frontend/qinputdeviceintegration.h @@ -81,6 +81,9 @@ public: virtual QVector<Qt3DCore::QNodeId> physicalDevices() const = 0; virtual QAbstractPhysicalDeviceBackendNode *physicalDevice(Qt3DCore::QNodeId id) const = 0; +protected: + QInputAspect *inputAspect() const; + private: virtual void onInitialize() = 0; |