forked from qt-creator/qt-creator
DiffEditor: Preserve source for state recovery
Task-number: QTCREATORBUG-10126 Change-Id: I707e7cdac84c91d52c5661718ac48e3d79fc7c91 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
18bba097bd
commit
f29ce3d9b9
@@ -890,6 +890,16 @@ QTextCodec *DiffEditorWidget::codec() const
|
||||
return const_cast<QTextCodec *>(m_leftEditor->codec());
|
||||
}
|
||||
|
||||
QString DiffEditorWidget::source() const
|
||||
{
|
||||
return m_source;
|
||||
}
|
||||
|
||||
void DiffEditorWidget::setSource(const QString &source)
|
||||
{
|
||||
m_source = source;
|
||||
}
|
||||
|
||||
BaseTextEditorWidget *DiffEditorWidget::leftEditor() const
|
||||
{
|
||||
return m_leftEditor;
|
||||
|
||||
Reference in New Issue
Block a user