diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2011-08-16 10:45:23 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-09-23 10:23:15 +0200 |
commit | 224491182666840def3a551a840c8fa840bfe5c2 (patch) | |
tree | 0c75ae3cc76819f373c1642ffd598e57568dac54 /src/plugins/qmljstools/qmljsindenter.cpp | |
parent | 3955df7855c9d27d8d470f509578bd9004b72ea1 (diff) | |
download | qt-creator-224491182666840def3a551a840c8fa840bfe5c2.tar.gz |
Implement Code Style schemes
Task-number: QTCREATORBUG-5092
Change-Id: I218cef02f7c242e4dfae59b1b8021ea618e60d07
Reviewed-on: http://codereview.qt-project.org/5160
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/qmljstools/qmljsindenter.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljsindenter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/qmljstools/qmljsindenter.cpp b/src/plugins/qmljstools/qmljsindenter.cpp index 1691eb40ff..13ffc9621a 100644 --- a/src/plugins/qmljstools/qmljsindenter.cpp +++ b/src/plugins/qmljstools/qmljsindenter.cpp @@ -81,3 +81,9 @@ void Indenter::indentBlock(QTextDocument *doc, tabSettings.indentLine(block, depth); } + +void Indenter::invalidateCache(QTextDocument *doc) +{ + QmlJSTools::QtStyleCodeFormatter codeFormatter; + codeFormatter.invalidateCache(doc); +} |