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:
@@ -405,11 +405,6 @@ public:
|
||||
|
||||
SideDiffEditorWidget(QWidget *parent = 0);
|
||||
|
||||
// TODO: remove me, codec should be taken from somewhere else
|
||||
QTextCodec *codec() const {
|
||||
return const_cast<QTextCodec *>(baseTextDocument()->codec());
|
||||
}
|
||||
|
||||
// block number, file info
|
||||
QMap<int, DiffEditorController::DiffFileInfo> fileInfo() const { return m_fileInfo; }
|
||||
|
||||
@@ -1175,11 +1170,6 @@ void SideBySideDiffEditorWidget::setCurrentDiffFileIndex(int diffFileIndex)
|
||||
m_rightEditor->centerCursor();
|
||||
}
|
||||
|
||||
QTextCodec *SideBySideDiffEditorWidget::codec() const
|
||||
{
|
||||
return const_cast<QTextCodec *>(m_leftEditor->codec());
|
||||
}
|
||||
|
||||
FileData SideBySideDiffEditorWidget::calculateContextData(const ChunkData &originalData) const
|
||||
{
|
||||
const int contextLinesNumber = m_controller ? m_controller->contextLinesNumber() : 3;
|
||||
|
||||
Reference in New Issue
Block a user