diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-01-15 20:02:27 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-01-15 20:02:27 +0000 |
commit | 6dac744d17dca5664a308a21e8dba3765cf8a8a3 (patch) | |
tree | dae1aa28424b82e8e8172f54313af376385ac0ff /src/input | |
parent | 78ad6123fb4f8597eb936e2c4b1636d307df4ecc (diff) | |
parent | 8b820e8f93c851c08941a4eead519588d2135c3d (diff) |
Merge branch '5.6' into dev
Conflicts:
examples/qt3d/qgltf/main.qml
Change-Id: I03d4cc679a7812fb114461609e481d43a0bc5390
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/backend/qabstractphysicaldevicebackendnode.h | 2 | ||||
-rw-r--r-- | src/input/frontend/qabstractphysicaldevice.h | 4 | ||||
-rw-r--r-- | src/input/frontend/qkeyboardcontroller.cpp | 4 | ||||
-rw-r--r-- | src/input/frontend/qkeyboardcontroller.h | 4 | ||||
-rw-r--r-- | src/input/frontend/qmousecontroller.cpp | 4 | ||||
-rw-r--r-- | src/input/frontend/qmousecontroller.h | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/src/input/backend/qabstractphysicaldevicebackendnode.h b/src/input/backend/qabstractphysicaldevicebackendnode.h index 1d7ef21bd..3846d1a1e 100644 --- a/src/input/backend/qabstractphysicaldevicebackendnode.h +++ b/src/input/backend/qabstractphysicaldevicebackendnode.h @@ -56,7 +56,7 @@ class QT3DINPUTSHARED_EXPORT QAbstractPhysicalDeviceBackendNode : public Qt3DCor public: explicit QAbstractPhysicalDeviceBackendNode(QBackendNode::Mode mode); void updateFromPeer(Qt3DCore::QNode *peer) Q_DECL_OVERRIDE; - void cleanup(); + virtual void cleanup(); void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE; void setInputAspect(QInputAspect *aspect); diff --git a/src/input/frontend/qabstractphysicaldevice.h b/src/input/frontend/qabstractphysicaldevice.h index 915042edc..8056a195b 100644 --- a/src/input/frontend/qabstractphysicaldevice.h +++ b/src/input/frontend/qabstractphysicaldevice.h @@ -62,8 +62,8 @@ public: virtual QStringList axisNames() const = 0; virtual QStringList buttonNames() const = 0; - virtual int axisIdentifier(const QString &name) = 0; - virtual int buttonIdentifier(const QString &name) = 0; + virtual int axisIdentifier(const QString &name) const = 0; + virtual int buttonIdentifier(const QString &name) const = 0; void addAxisSetting(QAxisSetting *axisSetting); void removeAxisSetting(QAxisSetting *axisSetting); diff --git a/src/input/frontend/qkeyboardcontroller.cpp b/src/input/frontend/qkeyboardcontroller.cpp index 77b54c7fa..09ff52066 100644 --- a/src/input/frontend/qkeyboardcontroller.cpp +++ b/src/input/frontend/qkeyboardcontroller.cpp @@ -258,13 +258,13 @@ QStringList QKeyboardController::buttonNames() const return d->m_keyNames; } -int QKeyboardController::axisIdentifier(const QString &name) +int QKeyboardController::axisIdentifier(const QString &name) const { Q_UNUSED(name); return 0; } -int QKeyboardController::buttonIdentifier(const QString &name) +int QKeyboardController::buttonIdentifier(const QString &name) const { Q_D(const QKeyboardController); return d->m_keyMap.value(name, 0); diff --git a/src/input/frontend/qkeyboardcontroller.h b/src/input/frontend/qkeyboardcontroller.h index aafbd3e57..e929629d9 100644 --- a/src/input/frontend/qkeyboardcontroller.h +++ b/src/input/frontend/qkeyboardcontroller.h @@ -62,8 +62,8 @@ public: int buttonCount() const Q_DECL_FINAL; QStringList axisNames() const Q_DECL_FINAL; QStringList buttonNames() const Q_DECL_FINAL; - int axisIdentifier(const QString &name) Q_DECL_FINAL; - int buttonIdentifier(const QString &name) Q_DECL_FINAL; + int axisIdentifier(const QString &name) const Q_DECL_FINAL; + int buttonIdentifier(const QString &name) const Q_DECL_FINAL; protected: QKeyboardController(QKeyboardControllerPrivate &dd, QNode *parent = 0); diff --git a/src/input/frontend/qmousecontroller.cpp b/src/input/frontend/qmousecontroller.cpp index a8e3cbc61..30b200629 100644 --- a/src/input/frontend/qmousecontroller.cpp +++ b/src/input/frontend/qmousecontroller.cpp @@ -107,7 +107,7 @@ QStringList QMouseController::buttonNames() const << QStringLiteral("Center"); } -int QMouseController::axisIdentifier(const QString &name) +int QMouseController::axisIdentifier(const QString &name) const { if (name == QStringLiteral("X")) return X; @@ -116,7 +116,7 @@ int QMouseController::axisIdentifier(const QString &name) return -1; } -int QMouseController::buttonIdentifier(const QString &name) +int QMouseController::buttonIdentifier(const QString &name) const { if (name == QStringLiteral("Left")) return Left; diff --git a/src/input/frontend/qmousecontroller.h b/src/input/frontend/qmousecontroller.h index 8a03d7e14..3773c652c 100644 --- a/src/input/frontend/qmousecontroller.h +++ b/src/input/frontend/qmousecontroller.h @@ -72,8 +72,8 @@ public: int buttonCount() const Q_DECL_FINAL; QStringList axisNames() const Q_DECL_FINAL; QStringList buttonNames() const Q_DECL_FINAL; - int axisIdentifier(const QString &name) Q_DECL_FINAL; - int buttonIdentifier(const QString &name) Q_DECL_FINAL; + int axisIdentifier(const QString &name) const Q_DECL_FINAL; + int buttonIdentifier(const QString &name) const Q_DECL_FINAL; float sensitivity() const; |