summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/textdocument.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/texteditor/textdocument.h
parent277495e8cbee9ee5a7216ae9a3b7d253a3b536b9 (diff)
downloadqt-creator-6dd0e79d096381e2498f9e56a804778bb54f14b1.tar.gz
Add override to IDocument hierarchy
Change-Id: I6884f59fe0f06e380254c1f8076dd561d9df4ee3 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/textdocument.h')
-rw-r--r--src/plugins/texteditor/textdocument.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/plugins/texteditor/textdocument.h b/src/plugins/texteditor/textdocument.h
index 0897a6823b..8bb462c035 100644
--- a/src/plugins/texteditor/textdocument.h
+++ b/src/plugins/texteditor/textdocument.h
@@ -66,7 +66,7 @@ class TEXTEDITOR_EXPORT TextDocument : public Core::BaseTextDocument
public:
explicit TextDocument(Core::Id id = Core::Id());
- virtual ~TextDocument();
+ ~TextDocument() override;
static QMap<QString, QString> openedTextDocumentContents();
static QMap<QString, QTextCodec *> openedTextDocumentEncodings();
@@ -101,23 +101,24 @@ public:
void removeMarkFromMarksCache(TextMark *mark);
// IDocument implementation.
- bool save(QString *errorString, const QString &fileName, bool autoSave);
- bool setContents(const QByteArray &contents);
- bool shouldAutoSave() const;
- bool isFileReadOnly() const;
- bool isModified() const;
- bool isSaveAsAllowed() const;
- void checkPermissions();
- bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
- void setFilePath(const Utils::FileName &newName);
-
- QString defaultPath() const;
- QString suggestedFileName() const;
+ bool save(QString *errorString, const QString &fileName, bool autoSave) override;
+ bool setContents(const QByteArray &contents) override;
+ bool shouldAutoSave() const override;
+ bool isFileReadOnly() const override;
+ bool isModified() const override;
+ bool isSaveAsAllowed() const override;
+ void checkPermissions() override;
+ bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
+ void setFilePath(const Utils::FileName &newName) override;
+
+ QString defaultPath() const override;
+ QString suggestedFileName() const override;
void setDefaultPath(const QString &defaultPath);
void setSuggestedFileName(const QString &suggestedFileName);
- OpenResult open(QString *errorString, const QString &fileName, const QString &realFileName);
+ OpenResult open(QString *errorString, const QString &fileName,
+ const QString &realFileName) override;
virtual bool reload(QString *errorString);
bool setPlainText(const QString &text);