Commit 43035981 authored by hjk's avatar hjk

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: default avatarChristian Stenger <christian.stenger@digia.com>
parent bdcf2734
......@@ -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;
......
......@@ -203,6 +203,8 @@ public:
// FIXME: Only used to delay initialization from CppEditor.
// There should be something simpler.
void setCompletionAssistProvider(const std::function<CompletionAssistProvider *()> &provider);
// FIXME: Remove.
void configureCodeAssistant();
signals:
void markRequested(TextEditor::BaseTextEditor *editor, int line, TextEditor::BaseTextEditor::MarkRequestKind kind);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment