summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodeformatter.h
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-09-08 16:18:58 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2010-09-08 16:22:23 +0200
commit5cd6ebfdfd94aa9745f2ca8e92c5ed24d6bc1afa (patch)
tree9fa31d3086c2097aca8c21fe308919616c247329 /src/plugins/cpptools/cppcodeformatter.h
parent2989ac1d69ac6fff8e27e881ea3d654425691c2a (diff)
downloadqt-creator-5cd6ebfdfd94aa9745f2ca8e92c5ed24d6bc1afa.tar.gz
C++: Only reindent on electric characters if indent wasn't user-changed.
This should make the indenter less strict and annoying for non-standard indentation styles. Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/plugins/cpptools/cppcodeformatter.h')
-rw-r--r--src/plugins/cpptools/cppcodeformatter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodeformatter.h b/src/plugins/cpptools/cppcodeformatter.h
index a9a9aa7e06..e0365cb5cf 100644
--- a/src/plugins/cpptools/cppcodeformatter.h
+++ b/src/plugins/cpptools/cppcodeformatter.h
@@ -69,6 +69,7 @@ public:
void updateLineStateChange(const QTextBlock &block);
int indentFor(const QTextBlock &block);
+ int indentForNewLineAfter(const QTextBlock &block);
void setTabSize(int tabSize);