QmlJS indenter: Move reusable code to qmljs lib.

Change-Id: I5ab50b586109a9736cda48245807571ce10dfb5b
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Christian Kamm
2011-10-17 13:56:48 +02:00
parent 6f613bc2f1
commit 4a487b1add
9 changed files with 348 additions and 337 deletions

View File

@@ -66,7 +66,7 @@ void Indenter::indentBlock(QTextDocument *doc,
{
Q_UNUSED(doc)
QmlJSTools::QtStyleCodeFormatter codeFormatter(tabSettings);
QmlJSTools::CreatorCodeFormatter codeFormatter(tabSettings);
codeFormatter.updateStateUntil(block);
const int depth = codeFormatter.indentFor(block);
@@ -84,6 +84,6 @@ void Indenter::indentBlock(QTextDocument *doc,
void Indenter::invalidateCache(QTextDocument *doc)
{
QmlJSTools::QtStyleCodeFormatter codeFormatter;
QmlJSTools::CreatorCodeFormatter codeFormatter;
codeFormatter.invalidateCache(doc);
}