forked from qt-creator/qt-creator
Make C++ code style configurable.
Change-Id: Iaf08edb2361146e6b5e1cbafdb716a23c938875b Done-with: Jarek Kobus Task-number: QTCREATORBUG-2670 Task-number: QTCREATORBUG-4310 Task-number: QTCREATORBUG-2763 Task-number: QTCREATORBUG-3623 Task-number: QTCREATORBUG-567 Reviewed-on: http://codereview.qt.nokia.com/74 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -338,8 +338,10 @@ void TabSettings::indentLine(QTextBlock block, int newIndent, int padding) const
|
||||
}
|
||||
|
||||
// Quickly check whether indenting is required.
|
||||
if (indentationColumn(text) == newIndent)
|
||||
return;
|
||||
// fixme: after changing "use spaces for tabs" the change was not reflected
|
||||
// because of the following optimisation. Commenting it out for now.
|
||||
// if (indentationColumn(text) == newIndent)
|
||||
// return;
|
||||
|
||||
QString indentString;
|
||||
|
||||
@@ -405,7 +407,7 @@ bool TabSettings::equals(const TabSettings &ts) const
|
||||
&& m_tabSize == ts.m_tabSize
|
||||
&& m_indentSize == ts.m_indentSize
|
||||
&& m_indentBraces == ts.m_indentBraces
|
||||
&& m_doubleIndentBlocks == ts.m_doubleIndentBlocks
|
||||
&& m_doubleIndentBlocks == ts.m_doubleIndentBlocks
|
||||
&& m_tabKeyBehavior == ts.m_tabKeyBehavior
|
||||
&& m_continuationAlignBehavior == ts.m_continuationAlignBehavior;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user