Move shared code to a new QmlJSTools plugin.

Reviewed-by: Thomas Hartmann
This commit is contained in:
Christian Kamm
2010-11-11 10:05:05 +01:00
parent a4cbd970e5
commit f366754462
32 changed files with 381 additions and 51 deletions

View File

@@ -28,8 +28,8 @@
**************************************************************************/
#include "qmljsindenter.h"
#include "qmljseditorcodeformatter.h"
#include <qmljstools/qmljsqtstylecodeformatter.h>
#include <texteditor/basetexteditor.h>
#include <texteditor/tabsettings.h>
@@ -66,7 +66,7 @@ void Indenter::doIndentBlock(QTextDocument *doc,
Q_UNUSED(editor)
const TextEditor::TabSettings &ts = editor->tabSettings();
QtStyleCodeFormatter codeFormatter(ts);
QmlJSTools::QtStyleCodeFormatter codeFormatter(ts);
codeFormatter.updateStateUntil(block);
const int depth = codeFormatter.indentFor(block);