summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qabstractphysicaldevice.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2016-03-19 22:15:56 +0000
committerMike Krus <mike.krus@kdab.com>2016-03-31 09:13:27 +0000
commitcfd6010b30e953f34a09e0d28e5889bd1901d888 (patch)
tree1cd0a64ec1ef71afa75c9144d2a322eebfc4e7f7 /src/input/frontend/qabstractphysicaldevice.cpp
parentd05275bae6f69e8cefc89d09e8f844c2adca8fe5 (diff)
QAbstractPhysicalDevice, make post events methods private
Only affects QGamepadInput Task-number: QTBUG-51482 Change-Id: I695b943faadc445637d47ae0adf862078064d953 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/frontend/qabstractphysicaldevice.cpp')
-rw-r--r--src/input/frontend/qabstractphysicaldevice.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/input/frontend/qabstractphysicaldevice.cpp b/src/input/frontend/qabstractphysicaldevice.cpp
index 85ea732ca..6f13f0892 100644
--- a/src/input/frontend/qabstractphysicaldevice.cpp
+++ b/src/input/frontend/qabstractphysicaldevice.cpp
@@ -185,25 +185,25 @@ QVector<QAxisSetting *> QAbstractPhysicalDevice::axisSettings() const
/*!
Used to notify observers that an axis value has been changed.
*/
-void QAbstractPhysicalDevice::postAxisEvent(int axis, qreal value)
+void QAbstractPhysicalDevicePrivate::postAxisEvent(int axis, qreal value)
{
- Q_D(QAbstractPhysicalDevice);
- Qt3DCore::QScenePropertyChangePtr change(new Qt3DCore::QScenePropertyChange(Qt3DCore::NodeUpdated, Qt3DCore::QSceneChange::Node, id()));
+ Q_Q(QAbstractPhysicalDevice);
+ Qt3DCore::QScenePropertyChangePtr change(new Qt3DCore::QScenePropertyChange(Qt3DCore::NodeUpdated, Qt3DCore::QSceneChange::Node, q->id()));
change->setPropertyName("axisEvent");
change->setValue(QVariant::fromValue(QPair<int, qreal>(axis, value)));
- d->notifyObservers(change);
+ notifyObservers(change);
}
/*!
Used to notify observers that an button value has been changed.
*/
-void QAbstractPhysicalDevice::postButtonEvent(int button, qreal value)
+void QAbstractPhysicalDevicePrivate::postButtonEvent(int button, qreal value)
{
- Q_D(QAbstractPhysicalDevice);
- Qt3DCore::QScenePropertyChangePtr change(new Qt3DCore::QScenePropertyChange(Qt3DCore::NodeUpdated, Qt3DCore::QSceneChange::Node, id()));
+ Q_Q(QAbstractPhysicalDevice);
+ Qt3DCore::QScenePropertyChangePtr change(new Qt3DCore::QScenePropertyChange(Qt3DCore::NodeUpdated, Qt3DCore::QSceneChange::Node, q->id()));
change->setPropertyName("buttonEvent");
change->setValue(QVariant::fromValue(QPair<int, qreal>(button, value)));
- d->notifyObservers(change);
+ notifyObservers(change);
}
void QAbstractPhysicalDevice::copy(const QNode *ref)