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>
This commit is contained in:
David Schulz
2022-08-03 10:41:05 +02:00
parent 86f93b8949
commit 5aa987b6a5

View File

@@ -255,6 +255,7 @@ LanguageClientOutlineWidget::LanguageClientOutlineWidget(Client *client,
if (m_sync)
updateSelectionInTree(m_editor->textCursor());
});
setFocusProxy(&m_view);
}
QList<QAction *> LanguageClientOutlineWidget::filterMenuActions() const