summaryrefslogtreecommitdiffstats
path: root/src/input/frontend
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2019-10-07 18:01:34 +0100
committerMike Krus <mike.krus@kdab.com>2019-10-11 07:23:05 +0100
commit8db80eb521e5a439cb9b499bd17253059b3b340d (patch)
treeb656798152a96508003d4ade0037adc86a9408a5 /src/input/frontend
parent4fde5ac2ee2f1a179b5591b19a20e611a486de2d (diff)
Update keyboard handling jobs to use direct sync
Change-Id: I5284594ac1c23e59cf1d55ad90032c8cb89df657 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/frontend')
-rw-r--r--src/input/frontend/qkeyboardhandler.cpp17
-rw-r--r--src/input/frontend/qkeyboardhandler.h3
2 files changed, 0 insertions, 20 deletions
diff --git a/src/input/frontend/qkeyboardhandler.cpp b/src/input/frontend/qkeyboardhandler.cpp
index 485959bcd..aff136a04 100644
--- a/src/input/frontend/qkeyboardhandler.cpp
+++ b/src/input/frontend/qkeyboardhandler.cpp
@@ -170,23 +170,6 @@ QKeyboardHandler::~QKeyboardHandler()
{
}
-/*! \internal */
-void QKeyboardHandler::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)
-{
- Q_D(QKeyboardHandler);
- QPropertyUpdatedChangePtr e = qSharedPointerCast<QPropertyUpdatedChange>(change);
- if (e->type() == PropertyUpdated) {
- if (e->propertyName() == QByteArrayLiteral("focus")) {
- bool block = blockNotifications(true);
- setFocus(e->value().toBool());
- blockNotifications(block);
- } else if (e->propertyName() == QByteArrayLiteral("event")) {
- QKeyEventPtr ev = e->value().value<QKeyEventPtr>();
- d->keyEvent(ev.data());
- }
- }
-}
-
/*!
\qmlproperty KeyboardDevice Qt3D.Input::KeyboardHandler::sourceDevice
*/
diff --git a/src/input/frontend/qkeyboardhandler.h b/src/input/frontend/qkeyboardhandler.h
index 056d7c7a4..d69476286 100644
--- a/src/input/frontend/qkeyboardhandler.h
+++ b/src/input/frontend/qkeyboardhandler.h
@@ -115,9 +115,6 @@ Q_SIGNALS:
void pressed(Qt3DInput::QKeyEvent *event);
void released(Qt3DInput::QKeyEvent *event);
-protected:
- void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) override;
-
private:
Q_DECLARE_PRIVATE(QKeyboardHandler)
Qt3DCore::QNodeCreatedChangeBasePtr createNodeCreationChange() const override;