From 1f99db9d8f548e3beb8f6bdf41897038efc982ff Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Fri, 8 Apr 2011 10:56:09 +0200 Subject: [PATCH] Describe folding indents of the DiffHighlighter --- src/plugins/vcsbase/diffhighlighter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/vcsbase/diffhighlighter.cpp b/src/plugins/vcsbase/diffhighlighter.cpp index f2c1d6344a5..cc2c1957074 100644 --- a/src/plugins/vcsbase/diffhighlighter.cpp +++ b/src/plugins/vcsbase/diffhighlighter.cpp @@ -153,6 +153,12 @@ static inline int trimmedLength(const QString &in) return 0; } +/* + * This sets the folding indent: + * 0 for the first line of the diff header. + * 1 for all the following lines of the diff header and all @@ lines. + * 2 for everything else + */ void DiffHighlighter::highlightBlock(const QString &text) { if (text.isEmpty())