diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-05-30 15:23:52 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2016-05-31 07:31:29 +0000 |
commit | 79733e5625faa44e013b74d625b1eb9214378e36 (patch) | |
tree | fcf3f9d9376bb41f579cf82367f058352f3b1b36 /src/plugins/coreplugin/textdocument.h | |
parent | 74558e856181f6b8885ad0590302f7193acf4912 (diff) | |
download | qt-creator-79733e5625faa44e013b74d625b1eb9214378e36.tar.gz |
Remove a few TextDocument subclasses
Which only differed in some property settings.
Change-Id: Ie844c32709ebe719a5b749fd2ef828b64086ba9a
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/textdocument.h')
-rw-r--r-- | src/plugins/coreplugin/textdocument.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/textdocument.h b/src/plugins/coreplugin/textdocument.h index 1a2b27c356..1ff2af7bee 100644 --- a/src/plugins/coreplugin/textdocument.h +++ b/src/plugins/coreplugin/textdocument.h @@ -47,7 +47,7 @@ public: const QTextCodec *codec() const; void setCodec(const QTextCodec *); void switchUtf8Bom(); - virtual bool supportsUtf8Bom() { return true; } + bool supportsUtf8Bom() const; ReadResult read(const QString &fileName, QStringList *plainTextList, QString *errorString); ReadResult read(const QString &fileName, QString *plainText, QString *errorString); @@ -58,6 +58,8 @@ public: bool write(const QString &fileName, const QString &data, QString *errorMessage) const; bool write(const QString &fileName, const Utils::TextFileFormat &format, const QString &data, QString *errorMessage) const; + void setSupportsUtf8Bom(bool value); + private: Internal::TextDocumentPrivate *d; }; |