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:
hjk
2014-08-21 18:09:06 +02:00
parent bdcf273410
commit 43035981c0
2 changed files with 7 additions and 0 deletions

View File

@@ -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;