diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-08-25 14:54:45 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-08-25 14:55:16 +0200 |
commit | b79fe7e71172dfd15947db9f7cda90abe1e8857e (patch) | |
tree | 12a78e6ffbe876a9485b67b135a6895e54341f07 /src/plugins/cpptools/cppcodeformatter.cpp | |
parent | 7a8c07a1f85630ee8dd4e274dc8ef90cf43217c7 (diff) | |
download | qt-creator-b79fe7e71172dfd15947db9f7cda90abe1e8857e.tar.gz |
C++: Fix indenting of QML_* macros.
Task-number: QTCREATORBUG-2111
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodeformatter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index 4164010fb9..591c1f2d16 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -678,6 +678,7 @@ bool CodeFormatter::tryDeclaration() QString tokenText = currentTokenText().toString(); if (tokenText.startsWith(QLatin1String("Q_")) || tokenText.startsWith(QLatin1String("QT_")) + || tokenText.startsWith(QLatin1String("QML_")) || tokenText.startsWith(QLatin1String("QDOC_"))) { enter(qt_like_macro); return true; |