aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basetexteditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-21 18:09:06 +0200
committerhjk <hjk121@nokiamail.com>2014-08-22 10:03:01 +0200
commit43035981c0a3ef28d1259333a55ee7cd0150402b (patch)
treecaec81455d54aa65641e0f2b04c53b40eafa48f3 /src/plugins/texteditor/basetexteditor.cpp
parentbdcf27341005fa42f5f468c5bd111aa0c196171b (diff)
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>
Diffstat (limited to 'src/plugins/texteditor/basetexteditor.cpp')
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index a39feff4c5..2015b131d2 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -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;