summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/textdocument.h
diff options
context:
space:
mode:
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);