forked from qt-creator/qt-creator
QmlJSEditor: Fix auto-indentation
Broke with 3ad3876611
Change-Id: Id67e574b11e92d83124081f05262110033c8504e
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user