forked from qt-creator/qt-creator
TextEditor: Add a helper function to set up code assistance
This is needed for further refactoring in the cpp and qmljs editors. Change-Id: Ic25525e5f468e915226e9daa8d118ff76a749e9f Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -6561,6 +6561,11 @@ void BaseTextEditor::setEditorWidget(BaseTextEditorWidget *widget)
|
||||
setWidget(widget);
|
||||
}
|
||||
|
||||
void BaseTextEditor::configureCodeAssistant()
|
||||
{
|
||||
editorWidget()->d->m_codeAssistant.configure(this);
|
||||
}
|
||||
|
||||
BaseTextEditor::~BaseTextEditor()
|
||||
{
|
||||
delete m_widget;
|
||||
|
||||
Reference in New Issue
Block a user