summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/submiteditorfile.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@theqtcompany.com>2016-10-07 15:58:40 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2016-10-17 14:44:08 +0000
commit59c90e00c1e8b18d120f5b5c15b331b1ee427ace (patch)
tree813294816790a798877bd00e92a0a9b980b8d106 /src/plugins/vcsbase/submiteditorfile.cpp
parentcaf721430b1a02be6f76fb5d98d44ecb2e5cdab9 (diff)
downloadqt-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.cpp9
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);