diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2011-10-17 14:22:32 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-10-17 14:22:32 +0200 |
commit | 8eb8368139b08064bf3340fe1df4ddc74ae6b44d (patch) | |
tree | 3731efd8103cb1703321eed007574be12475a2ea /src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp | |
parent | 4ea9c2193210d2ce87722085aa4ad7cc3057c405 (diff) | |
parent | a9eb880353ce6b07bab5b57b0663fbe714066907 (diff) | |
download | qt-creator-8eb8368139b08064bf3340fe1df4ddc74ae6b44d.tar.gz |
Merge remote-tracking branch 'origin/2.4'
Conflicts:
qtcreator.pri
src/libs/qmljs/qmljstypedescriptionreader.cpp
tests/auto/qml/qmleditor/qmlcodeformatter/tst_qmlcodeformatter.cpp
Change-Id: Id032187023bb42f259a87545ceeb3c965dd01a32
Diffstat (limited to 'src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp b/src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp index 412c4c9d83..3961c88046 100644 --- a/src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp +++ b/src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp @@ -139,18 +139,15 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd if (*indentDepth == tokenPosition) { // expression_or_objectdefinition doesn't want the indent // expression_or_label already has it - // ternary already adjusts indents nicely if (parentState.type != expression_or_objectdefinition && parentState.type != expression_or_label - && parentState.type != binding_assignment - && parentState.type != ternary_op) { + && parentState.type != binding_assignment) { *indentDepth += 2*m_indentSize; } } // expression_or_objectdefinition and expression_or_label have already consumed the first token else if (parentState.type != expression_or_objectdefinition - && parentState.type != expression_or_label - && parentState.type != ternary_op) { + && parentState.type != expression_or_label) { *indentDepth = tokenPosition; } break; |