diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-07-15 15:14:10 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-07-17 09:00:17 +0200 |
commit | fade19a9bfb89b791d9a64dd3e43441a5861e40c (patch) | |
tree | e691329773e462f851480ac92f75a0c9ce43284f /src/plugins/resourceeditor/resourceeditorw.h | |
parent | 0ba2b9b37d745107926e13cf7e241c5351229966 (diff) |
Move IEditor::createNew to IDocument::setContents
The method is for setting the contents, so it belongs to the document,
and should be named correspondingly.
Change-Id: I40363dc08f11268f530885b512e4a88e8b10d096
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h index 5a3e222005..5c1abbda2b 100644 --- a/src/plugins/resourceeditor/resourceeditorw.h +++ b/src/plugins/resourceeditor/resourceeditorw.h @@ -55,6 +55,7 @@ public: //IDocument bool save(QString *errorString, const QString &fileName, bool autoSave); + bool setContents(const QByteArray &contents); bool shouldAutoSave() const; bool isModified() const; bool isSaveAsAllowed() const; @@ -85,7 +86,6 @@ public: ~ResourceEditorW(); // IEditor - bool createNew(const QString &contents); bool open(QString *errorString, const QString &fileName, const QString &realFileName); Core::IDocument *document() { return m_resourceDocument; } Core::Id id() const; |