Add file descriptions, enable file folding

Change-Id: Ie90ac9fb74e9c4b8cfba16d065d1b8751125e83c
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
jkobus
2013-04-25 17:37:20 +02:00
committed by Jarek Kobus
parent 325c0beda5
commit e844bee1da
5 changed files with 468 additions and 209 deletions

View File

@@ -328,7 +328,15 @@ void DiffEditorPlugin::diff()
const QString text1 = getFileContents(fileName1, editorWidget->codec());
const QString text2 = getFileContents(fileName2, editorWidget->codec());
editorWidget->setDiff(text1, text2);
DiffEditorWidget::DiffFilesContents dfc;
dfc.leftFileName = fileName1;
dfc.leftText = text1;
dfc.rightFileName = fileName2;
dfc.rightText = text2;
QList<DiffEditorWidget::DiffFilesContents> list;
list.append(dfc);
editorWidget->setDiff(list);
}
}