diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-10-07 15:58:40 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2016-10-17 14:44:08 +0000 |
commit | 59c90e00c1e8b18d120f5b5c15b331b1ee427ace (patch) | |
tree | 813294816790a798877bd00e92a0a9b980b8d106 /src/plugins/vcsbase/submiteditorfile.cpp | |
parent | caf721430b1a02be6f76fb5d98d44ecb2e5cdab9 (diff) | |
download | qt-creator-59c90e00c1e8b18d120f5b5c15b331b1ee427ace.tar.gz |
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>
Diffstat (limited to 'src/plugins/vcsbase/submiteditorfile.cpp')
-rw-r--r-- | src/plugins/vcsbase/submiteditorfile.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/plugins/vcsbase/submiteditorfile.cpp b/src/plugins/vcsbase/submiteditorfile.cpp index 9136118bf7..9a38537078 100644 --- a/src/plugins/vcsbase/submiteditorfile.cpp +++ b/src/plugins/vcsbase/submiteditorfile.cpp @@ -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); |