forked from qt-creator/qt-creator
LanguageClient: Request symbols in outline combo box constructor
Change-Id: Ib7bc4f828b6e3abc4344ff96b7561015ac0cf66f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -299,6 +299,8 @@ OutlineComboBox::OutlineComboBox(Client *client, TextEditor::BaseTextEditor *edi
|
|||||||
connect(m_editorWidget, &TextEditor::TextEditorWidget::cursorPositionChanged,
|
connect(m_editorWidget, &TextEditor::TextEditorWidget::cursorPositionChanged,
|
||||||
this, &OutlineComboBox::updateEntry);
|
this, &OutlineComboBox::updateEntry);
|
||||||
connect(this, QOverload<int>::of(&QComboBox::activated), this, &OutlineComboBox::activateEntry);
|
connect(this, QOverload<int>::of(&QComboBox::activated), this, &OutlineComboBox::activateEntry);
|
||||||
|
|
||||||
|
requestSymbols();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutlineComboBox::updateModel(const DocumentUri &resultUri, const DocumentSymbolsResult &result)
|
void OutlineComboBox::updateModel(const DocumentUri &resultUri, const DocumentSymbolsResult &result)
|
||||||
|
Reference in New Issue
Block a user