From 9822fb65df6d0514bfdb48b79d72824f3e6d5781 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 31 Oct 2009 15:26:45 +0530 Subject: cleanWhitespace() checkes whether it has to change indentation or not. handle that. --- src/plugins/texteditor/tabsettings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/texteditor/tabsettings.h') diff --git a/src/plugins/texteditor/tabsettings.h b/src/plugins/texteditor/tabsettings.h index d6bd2b0afeb..88950bd597c 100644 --- a/src/plugins/texteditor/tabsettings.h +++ b/src/plugins/texteditor/tabsettings.h @@ -72,7 +72,7 @@ struct TEXTEDITOR_EXPORT TabSettings void reindentLine(QTextBlock block, int delta) const; int trailingWhitespaces(const QString &text) const; - bool isIndentationClean(const QString &text) const; + bool isIndentationClean(const QTextBlock &block) const; bool tabShouldIndent(const QTextDocument *document, QTextCursor cursor, int *suggestedPosition = 0) const; bool guessSpacesForTabs(const QTextBlock& block) const; -- cgit v1.2.3