Describe folding indents of the DiffHighlighter

This commit is contained in:
Tobias Hunger
2011-04-08 10:56:09 +02:00
parent 6a2490c381
commit 1f99db9d8f

View File

@@ -153,6 +153,12 @@ static inline int trimmedLength(const QString &in)
return 0; 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) void DiffHighlighter::highlightBlock(const QString &text)
{ {
if (text.isEmpty()) if (text.isEmpty())