Commit ae5ef38e authored by Eike Ziller's avatar Eike Ziller
Browse files

QmlJSEditor: Fix auto-indentation

Broke with 3ad38766



Change-Id: Id67e574b11e92d83124081f05262110033c8504e
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 782e0d37
......@@ -48,7 +48,6 @@
#include <qmljs/qmljsutils.h>
#include <qmljstools/qmljstoolsconstants.h>
#include <qmljstools/qmljsindenter.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h>
......
......@@ -32,8 +32,9 @@
#include "qmljseditordocument_p.h"
#include "qmljshighlighter.h"
#include <qmljstools/qmljsqtstylecodeformatter.h>
#include <qmljstools/qmljsindenter.h>
#include <qmljstools/qmljsmodelmanager.h>
#include <qmljstools/qmljsqtstylecodeformatter.h>
using namespace QmlJSEditor;
using namespace QmlJSEditor::Internal;
......@@ -74,6 +75,7 @@ QmlJSEditorDocument::QmlJSEditorDocument()
connect(this, SIGNAL(tabSettingsChanged()),
m_d, SLOT(invalidateFormatterCache()));
setSyntaxHighlighter(new Highlighter(document()));
setIndenter(new Indenter);
}
QmlJSEditorDocument::~QmlJSEditorDocument()
......
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