forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user