forked from qt-creator/qt-creator
Add DiffEditorManager, refactoring.
GitDiffSwitcher operates now on IDocument. GitDiffHandler operates now on DiffEditorController. "source" property now attached to editor's document (VcsBasePlugin). Change-Id: Ie2570a597b8b992ac1dc33b9179eca459c8a751a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
@@ -34,9 +34,6 @@
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
///////////////////////////////// DiffFile //////////////////////////////////
|
||||
|
||||
DiffEditorDocument::DiffEditorDocument(const QString &mimeType) :
|
||||
Core::IDocument(),
|
||||
@@ -51,7 +48,7 @@ DiffEditorDocument::~DiffEditorDocument()
|
||||
{
|
||||
}
|
||||
|
||||
DiffEditorController *DiffEditorDocument::diffEditorController() const
|
||||
DiffEditorController *DiffEditorDocument::controller() const
|
||||
{
|
||||
return m_diffEditorController;
|
||||
}
|
||||
@@ -90,5 +87,4 @@ bool DiffEditorDocument::reload(QString *errorString, ReloadFlag flag, ChangeTyp
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
||||
Reference in New Issue
Block a user