Move DiffEditorController into DiffEditorDocument.

Prepare for making diff editor splittable.

Change-Id: I285ad46d095a98f2707d385558dfda0b10b77c1f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Jarek Kobus
2014-01-31 09:01:49 +01:00
committed by Jarek Kobus
parent 97895e9026
commit f156c3e013
5 changed files with 94 additions and 51 deletions

View File

@@ -48,11 +48,7 @@ DiffEditorFactory::DiffEditorFactory(QObject *parent)
Core::IEditor *DiffEditorFactory::createEditor()
{
SideBySideDiffEditorWidget *editorWidget = new SideBySideDiffEditorWidget();
DiffEditorController *editorController = new DiffEditorController(editorWidget);
editorWidget->setDiffEditorController(editorController);
DiffEditor *editor = new DiffEditor(editorWidget);
return editor;
return new DiffEditor();
}
} // namespace Internal