diff options
author | Andy Shaw <andy.shaw@qt.io> | 2017-11-01 15:40:14 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-04-11 14:08:53 +0000 |
commit | 996c6d452702162e909285b5be9a831290cff1c9 (patch) | |
tree | a3b429fb44c64ef4374f086659c4dc2e776b7926 /src/quickwidgets/qquickwidget.h | |
parent | 8780764b274217b256aadd00114a76bdffbdb1ef (diff) |
Pass on tab presses to the offscreen window to handle first
When pressing tab/backtab then the offscreen window needs to pass it on
to the item in case it will handle this for changing focus. If it does
not handle the event, it will pass it back for QWidget handling.
[ChangeLog][QQuickWidget] Tab presses are now passed on to the root
item to be handled first. When not handled by the root item, it will
be handled like a standard QWidget.
Task-number: QTBUG-45641
Change-Id: Ief0552ba496c87ab0b6e12aa8e67ef44b5a20ae2
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/quickwidgets/qquickwidget.h')
-rw-r--r-- | src/quickwidgets/qquickwidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget.h b/src/quickwidgets/qquickwidget.h index 3ddb0613ad..5543705f13 100644 --- a/src/quickwidgets/qquickwidget.h +++ b/src/quickwidgets/qquickwidget.h @@ -143,6 +143,7 @@ protected: bool event(QEvent *) override; void paintEvent(QPaintEvent *event) override; + bool focusNextPrevChild(bool next) override; private: Q_DISABLE_COPY(QQuickWidget) |