diff options
author | David Schulz <david.schulz@qt.io> | 2022-08-03 10:41:05 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-08-03 09:54:27 +0000 |
commit | 5aa987b6a5226bd4071f6aa498e5db423cd754d8 (patch) | |
tree | c416c699f1d56506578bd42c8f500d722a107562 | |
parent | 86f93b89499c63af5b011c8d832f01e195764465 (diff) |
LanguageClient: fix outline focus
Setting a focus proxy to the outline widget makes sure the tree view
gets the focus whenever the oultine widget gets focus, so after opening
the outline the user can directly use navigation keys to move the
selection in the outline.
Fixes: QTCREATORBUG-27595
Change-Id: I0771c99ccf5aa334f45065d58366b53f53bf75a5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/languageclient/languageclientoutline.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/languageclient/languageclientoutline.cpp b/src/plugins/languageclient/languageclientoutline.cpp index 9ac086493ca..abaea39f954 100644 --- a/src/plugins/languageclient/languageclientoutline.cpp +++ b/src/plugins/languageclient/languageclientoutline.cpp @@ -255,6 +255,7 @@ LanguageClientOutlineWidget::LanguageClientOutlineWidget(Client *client, if (m_sync) updateSelectionInTree(m_editor->textCursor()); }); + setFocusProxy(&m_view); } QList<QAction *> LanguageClientOutlineWidget::filterMenuActions() const |