diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-06-04 15:54:10 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-06-11 09:32:18 +0000 |
commit | 6dd0e79d096381e2498f9e56a804778bb54f14b1 (patch) | |
tree | 1bf7d342f72af5153c580cb65cdea8e9fd92164b /src/plugins/tasklist | |
parent | 277495e8cbee9ee5a7216ae9a3b7d253a3b536b9 (diff) |
Add override to IDocument hierarchy
Change-Id: I6884f59fe0f06e380254c1f8076dd561d9df4ee3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/tasklist')
-rw-r--r-- | src/plugins/tasklist/taskfile.cpp | 3 | ||||
-rw-r--r-- | src/plugins/tasklist/taskfile.h | 15 |
2 files changed, 7 insertions, 11 deletions
diff --git a/src/plugins/tasklist/taskfile.cpp b/src/plugins/tasklist/taskfile.cpp index 8969326403..f7725f793f 100644 --- a/src/plugins/tasklist/taskfile.cpp +++ b/src/plugins/tasklist/taskfile.cpp @@ -46,9 +46,6 @@ TaskFile::TaskFile(QObject *parent) : Core::IDocument(parent) setId("TaskList.TaskFile"); } -TaskFile::~TaskFile() -{ } - bool TaskFile::save(QString *errorString, const QString &fileName, bool autoSave) { Q_UNUSED(errorString) diff --git a/src/plugins/tasklist/taskfile.h b/src/plugins/tasklist/taskfile.h index 57b193da06..33dce7850c 100644 --- a/src/plugins/tasklist/taskfile.h +++ b/src/plugins/tasklist/taskfile.h @@ -42,18 +42,17 @@ class TaskFile : public Core::IDocument { public: TaskFile(QObject *parent); - ~TaskFile(); - bool save(QString *errorString, const QString &fileName, bool autoSave); + bool save(QString *errorString, const QString &fileName, bool autoSave) override; - QString defaultPath() const; - QString suggestedFileName() const; + QString defaultPath() const override; + QString suggestedFileName() const override; - bool isModified() const; - bool isSaveAsAllowed() const; + bool isModified() const override; + bool isSaveAsAllowed() const override; - ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const; - bool reload(QString *errorString, ReloadFlag flag, ChangeType type); + ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override; + bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override; bool load(QString *errorString, const QString &fileName); |