diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-07-04 11:35:56 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-07-09 10:21:58 +0200 |
commit | 99c383f3d06b93d79172a0bc3984b4f3332a8842 (patch) | |
tree | d47b752f0d82c6535a3fcaf29f19452073ff97a5 /src/plugins/resourceeditor/resourceeditorw.h | |
parent | 7dd81eca30b69b847709d00cb75fd432385c0917 (diff) |
Make IDocument::fileName a member with setter.
Instead of requiring subclasses to implement a method.
Also renames IDocument::rename to IDocument::setFileName,
since it doesn't really rename any files or such.
Change-Id: I1344025c24d2f74a6a983e04fb0a5245f1f37aad
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorw.h')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorw.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h index 22d71f69c8..ef174ed5c7 100644 --- a/src/plugins/resourceeditor/resourceeditorw.h +++ b/src/plugins/resourceeditor/resourceeditorw.h @@ -55,15 +55,14 @@ public: //IDocument bool save(QString *errorString, const QString &fileName, bool autoSave); - QString fileName() const; bool shouldAutoSave() const; bool isModified() const; bool isSaveAsAllowed() const; bool reload(QString *errorString, ReloadFlag flag, ChangeType type); QString defaultPath() const; QString suggestedFileName() const; - virtual QString mimeType() const; - virtual void rename(const QString &newName); + QString mimeType() const; + void setFileName(const QString &newName); private: const QString m_mimeType; |