diff options
author | mae <qt-info@nokia.com> | 2009-09-09 16:16:46 +0200 |
---|---|---|
committer | mae <qt-info@nokia.com> | 2009-09-09 16:16:46 +0200 |
commit | 16e7f0c16f57e984310cd1bba838a69221f4a18a (patch) | |
tree | c2d07de78c8a2328444f064e38d100634d43f2f7 /src/plugins/texteditor/tabsettings.h | |
parent | 32229e30b49f08b7f0b11f7ceae0fd0b78e46af2 (diff) |
be more conservative when reindenting code: only change the
actual whitespace when the indentation column changes.
Complete whitespace cleanup can still be done either automatically
on save (when configured) or when explicitely called with the
"Clean Whitespace" action from Edit/Advanced.
Diffstat (limited to 'src/plugins/texteditor/tabsettings.h')
-rw-r--r-- | src/plugins/texteditor/tabsettings.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/tabsettings.h b/src/plugins/texteditor/tabsettings.h index 2fbede4950..f26e0bb5ad 100644 --- a/src/plugins/texteditor/tabsettings.h +++ b/src/plugins/texteditor/tabsettings.h @@ -64,6 +64,7 @@ struct TEXTEDITOR_EXPORT TabSettings int indentedColumn(int column, bool doIndent = true) const; QString indentationString(int startColumn, int targetColumn) const; QString indentationString(const QString &text) const; + int indentationColumn(const QString &text) const; void indentLine(QTextBlock block, int newIndent) const; |