forked from qt-creator/qt-creator
Replace virtual isModified method with a getter/setter/notifier
We have lacked the setter and dedicated notifier before. Change-Id: I58845a48259d260c5cc90ae94b173c79cddcfef9 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -44,7 +44,6 @@ using namespace Utils;
|
||||
|
||||
SubmitEditorFile::SubmitEditorFile(const VcsBaseSubmitEditorParameters *parameters, VcsBaseSubmitEditor *parent) :
|
||||
Core::IDocument(parent),
|
||||
m_modified(false),
|
||||
m_editor(parent)
|
||||
{
|
||||
setId(parameters->id);
|
||||
@@ -83,14 +82,6 @@ bool SubmitEditorFile::setContents(const QByteArray &contents)
|
||||
return m_editor->setFileContents(contents);
|
||||
}
|
||||
|
||||
void SubmitEditorFile::setModified(bool modified)
|
||||
{
|
||||
if (m_modified == modified)
|
||||
return;
|
||||
m_modified = modified;
|
||||
emit changed();
|
||||
}
|
||||
|
||||
bool SubmitEditorFile::save(QString *errorString, const QString &fileName, bool autoSave)
|
||||
{
|
||||
const FileName fName = fileName.isEmpty() ? filePath() : FileName::fromString(fileName);
|
||||
|
||||
Reference in New Issue
Block a user