forked from qt-creator/qt-creator
Refactor source property
Get rid of source property out of DiffEditorWidget, attach dynamic property when it's needed instead. Change-Id: I6641a7b55c42b4eceba78c2e28f5140b40fe0fa5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -562,7 +562,6 @@ public:
|
||||
|
||||
const VcsBaseEditorParameters *m_parameters;
|
||||
|
||||
QString m_source;
|
||||
QString m_workingDirectory;
|
||||
|
||||
QRegExp m_diffFilePattern;
|
||||
@@ -738,12 +737,12 @@ void VcsBaseEditorWidget::setForceReadOnly(bool b)
|
||||
|
||||
QString VcsBaseEditorWidget::source() const
|
||||
{
|
||||
return d->m_source;
|
||||
return VcsBasePlugin::source(editor());
|
||||
}
|
||||
|
||||
void VcsBaseEditorWidget::setSource(const QString &source)
|
||||
{
|
||||
d->m_source = source;
|
||||
VcsBasePlugin::setSource(editor(), source);
|
||||
}
|
||||
|
||||
QString VcsBaseEditorWidget::annotateRevisionTextFormat() const
|
||||
|
||||
Reference in New Issue
Block a user