forked from qt-creator/qt-creator
LanguageClient: pass BaseTextEditor to outline generator
Change-Id: Id0e123f5614f3884bf3beaeafefd0ccbd1192d55 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -288,10 +288,11 @@ void updateEditorToolBar(Core::IEditor *editor)
|
||||
}
|
||||
|
||||
if (!extras->m_client) {
|
||||
if (QWidget *comboBox = LanguageClientOutlineWidgetFactory::createComboBox(client, editor)) {
|
||||
QWidget *comboBox = LanguageClientOutlineWidgetFactory::createComboBox(client, textEditor);
|
||||
if (comboBox) {
|
||||
extras->m_client = client;
|
||||
extras->m_outlineAction = widget->insertExtraToolBarWidget(TextEditorWidget::Left,
|
||||
comboBox);
|
||||
comboBox);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user