From 5cd6ebfdfd94aa9745f2ca8e92c5ed24d6bc1afa Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 8 Sep 2010 16:18:58 +0200 Subject: 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 --- src/plugins/cpptools/cppcodeformatter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cppcodeformatter.h') 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); -- cgit v1.2.1