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
This commit is contained in:
Christian Kamm
2010-09-08 16:18:58 +02:00
parent 2989ac1d69
commit 5cd6ebfdfd
3 changed files with 16 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ public:
void updateLineStateChange(const QTextBlock &block);
int indentFor(const QTextBlock &block);
int indentForNewLineAfter(const QTextBlock &block);
void setTabSize(int tabSize);