summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qkeyboarddevice.cpp
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2019-10-08 08:01:10 +0100
committerMike Krus <mike.krus@kdab.com>2019-10-20 21:25:38 +0100
commitce4663c2659d9e1611a1647a9b3cd26da8a80604 (patch)
tree8b2a30476e5f6501ce2f3bc713a7e6c5d7667168 /src/input/frontend/qkeyboarddevice.cpp
parent683151c338046621d239ac0d9b597171c56e3991 (diff)
Clean up old property update code
Remove useless includes, clear up commented out or unused code Change-Id: Id3382b16108d79f1e2522d43463c8d70aef8fcb2 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/input/frontend/qkeyboarddevice.cpp')
-rw-r--r--src/input/frontend/qkeyboarddevice.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/input/frontend/qkeyboarddevice.cpp b/src/input/frontend/qkeyboarddevice.cpp
index 257a5be8c..0fe3a1338 100644
--- a/src/input/frontend/qkeyboarddevice.cpp
+++ b/src/input/frontend/qkeyboarddevice.cpp
@@ -41,7 +41,6 @@
#include "qkeyboarddevice_p.h"
#include <Qt3DInput/qkeyboardhandler.h>
-#include <Qt3DCore/qpropertyupdatedchange.h>
#include <Qt3DCore/private/qscene_p.h>
@@ -310,16 +309,6 @@ QKeyboardDevice::QKeyboardDevice(QKeyboardDevicePrivate &dd, QNode *parent)
{
}
-/*! \internal */
-void QKeyboardDevice::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)
-{
- Q_D(QKeyboardDevice);
- Qt3DCore::QPropertyUpdatedChangePtr e = qSharedPointerCast<Qt3DCore::QPropertyUpdatedChange>(change);
- if (e->type() == Qt3DCore::PropertyUpdated && e->propertyName() == QByteArrayLiteral("activeInput")) {
- Qt3DCore::QNodeId activeInputId = e->value().value<Qt3DCore::QNodeId>();
- setActiveInput(qobject_cast<QKeyboardHandler *>(d->scene()->lookupNode(activeInputId)));
- }
-}
/*!
* Set the active input to \a activeInput
*/