Commit 025446b0 authored by Eike Ziller's avatar Eike Ziller
Browse files

Move document -> code assist connect to CodeAssistant::configure



Change-Id: I6124c12a269093fbd54cbbbb47b4d7f15ffaae2f
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 1adab4c4
......@@ -493,8 +493,6 @@ BaseTextEditor *BaseTextEditorWidget::editor() const
d->m_codeAssistant->configure(d->m_editor);
connect(this, SIGNAL(textChanged()),
d->m_editor, SIGNAL(contentsChanged()));
connect(baseTextDocument(),SIGNAL(mimeTypeChanged()),
d->m_codeAssistant.data(), SLOT(reconfigure()));
}
return d->m_editor;
}
......
......@@ -185,6 +185,8 @@ void CodeAssistantPrivate::configure(BaseTextEditor *textEditor)
filterEditorSpecificProviders(&m_quickFixProviders, m_textEditor->id());
m_textEditor->editorWidget()->installEventFilter(this);
connect(m_textEditor->baseTextDocument(),SIGNAL(mimeTypeChanged()),
m_q, SLOT(reconfigure()));
}
void CodeAssistantPrivate::reconfigure()
......
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