diff options
author | Mike Krus <mike.krus@kdab.com> | 2019-10-07 18:01:34 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2019-10-11 07:23:05 +0100 |
commit | 8db80eb521e5a439cb9b499bd17253059b3b340d (patch) | |
tree | b656798152a96508003d4ade0037adc86a9408a5 /src/input/frontend | |
parent | 4fde5ac2ee2f1a179b5591b19a20e611a486de2d (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.cpp | 17 | ||||
-rw-r--r-- | src/input/frontend/qkeyboardhandler.h | 3 |
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; |