VCS: Handle code folding in diff view

Allow to do codefolding on files and hunks in the diff editor
This commit is contained in:
Tobias Hunger
2010-11-21 10:15:12 +01:00
parent f84c228568
commit 8808f0fa2d
4 changed files with 90 additions and 11 deletions

View File

@@ -201,6 +201,7 @@ void VCSBaseEditor::init()
break;
case DiffOutput: {
DiffHighlighter *dh = createDiffHighlighter();
setCodeFoldingSupported(true);
baseTextDocument()->setSyntaxHighlighter(dh);
d->m_diffFilePattern = dh->filePattern();
connect(this, SIGNAL(textChanged()), this, SLOT(slotPopulateDiffBrowser()));