diff options
author | Paul Lemire <paul.lemire.ecortex@kdab.com> | 2014-11-12 12:07:12 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-11-14 20:29:42 +0100 |
commit | 80262ce2cb56a8f86c0747070a9ed3398a0c3c7d (patch) | |
tree | 45551aed7ed5fe24d61c282c4d9390a851cd637d /src/input | |
parent | 15e01778c59a981abfeb92c8a67e257f95badff4 (diff) |
KeyboardController: empty requestFocusForInput method
Will be completed in a follow up patch.
Change-Id: I487100de5604f9d7f09469e029a5db52fb5a318a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/keyboardcontroller.cpp | 8 | ||||
-rw-r--r-- | src/input/keyboardcontroller_p.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/input/keyboardcontroller.cpp b/src/input/keyboardcontroller.cpp index 65b6a47c8..a4ead52bc 100644 --- a/src/input/keyboardcontroller.cpp +++ b/src/input/keyboardcontroller.cpp @@ -61,6 +61,14 @@ void KeyboardController::updateFromPeer(QNode *) { } +void KeyboardController::requestFocusForInput(const QNodeUuid &inputId) +{ + Q_UNUSED(inputId); + // Saves the last inputId, this will then be used in an Aspect Job to determine which + // input will have the focus. This in turn will call KeyboardInput::setFocus which will + // decide if sending a notification to the frontend is necessary +} + void KeyboardController::sceneChangeEvent(const QSceneChangePtr &) { } diff --git a/src/input/keyboardcontroller_p.h b/src/input/keyboardcontroller_p.h index 0c9a61f64..513d323f3 100644 --- a/src/input/keyboardcontroller_p.h +++ b/src/input/keyboardcontroller_p.h @@ -58,6 +58,7 @@ class KeyboardController : public QBackendNode public: KeyboardController(); void updateFromPeer(QNode *peer) Q_DECL_OVERRIDE; + void requestFocusForInput(const QNodeUuid &inputId); protected: void sceneChangeEvent(const QSceneChangePtr &) Q_DECL_OVERRIDE; |