Commit 8dc9d67e authored by hjk's avatar hjk
Browse files

QmlJSEditor: Remove temporary code assists setup hack



It's taken care of by the normal factory based setup now.

Change-Id: Ia53551740cf5ef2998765ea1003ba8e7f9c30e46
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 775825ae
......@@ -883,11 +883,6 @@ QmlJSEditor::QmlJSEditor()
setCompletionAssistProvider(ExtensionSystem::PluginManager::getObject<Internal::QmlJSCompletionAssistProvider>());
}
void QmlJSEditor::finalizeInitialization()
{
configureCodeAssistant();
}
bool QmlJSEditor::isDesignModePreferred() const
{
// stay in design mode if we are there
......
......@@ -147,7 +147,6 @@ public:
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
bool isDesignModePreferred() const;
void finalizeInitialization();
};
class QmlJSEditorFactory : public TextEditor::BaseTextEditorFactory
......
......@@ -6551,11 +6551,6 @@ void BaseTextEditor::setEditorWidget(BaseTextEditorWidget *widget)
setWidget(widget);
}
void BaseTextEditor::configureCodeAssistant()
{
editorWidget()->d->m_codeAssistant.configure(this);
}
BaseTextEditor::~BaseTextEditor()
{
delete m_widget;
......
......@@ -205,8 +205,6 @@ 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