aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/resourceeditorw.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-06-04 15:54:10 +0200
committerEike Ziller <eike.ziller@theqtcompany.com>2015-06-11 09:32:18 +0000
commit6dd0e79d096381e2498f9e56a804778bb54f14b1 (patch)
tree1bf7d342f72af5153c580cb65cdea8e9fd92164b /src/plugins/resourceeditor/resourceeditorw.h
parent277495e8cbee9ee5a7216ae9a3b7d253a3b536b9 (diff)
Add override to IDocument hierarchy
Change-Id: I6884f59fe0f06e380254c1f8076dd561d9df4ee3 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorw.h')
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h
index ad9bf13424..4ab9a35d49 100644
--- a/src/plugins/resourceeditor/resourceeditorw.h
+++ b/src/plugins/resourceeditor/resourceeditorw.h
@@ -57,17 +57,18 @@ public:
ResourceEditorDocument(QObject *parent = 0);
//IDocument
- OpenResult open(QString *errorString, const QString &fileName, const QString &realFileName);
- bool save(QString *errorString, const QString &fileName, bool autoSave);
+ OpenResult open(QString *errorString, const QString &fileName,
+ const QString &realFileName) override;
+ bool save(QString *errorString, const QString &fileName, bool autoSave) override;
QString plainText() const;
- bool setContents(const QByteArray &contents);
- bool shouldAutoSave() const;
- bool isModified() const;
- bool isSaveAsAllowed() const;
- bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
- QString defaultPath() const;
- QString suggestedFileName() const;
- void setFilePath(const Utils::FileName &newName);
+ bool setContents(const QByteArray &contents) override;
+ bool shouldAutoSave() const override;
+ bool isModified() const override;
+ bool isSaveAsAllowed() const override;
+ bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
+ QString defaultPath() const override;
+ QString suggestedFileName() const override;
+ void setFilePath(const Utils::FileName &newName) override;
void setBlockDirtyChanged(bool value);
RelativeResourceModel *model() const;