summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextodfwriter_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-07 09:13:01 +0200
committerLars Knoll <lars.knoll@qt.io>2020-04-21 15:46:29 +0200
commita23cb5cd06bcc3268387cb1abaa0dc2c2d3b13f4 (patch)
tree404184e2121719936611d498debac69942790b5b /src/gui/text/qtextodfwriter_p.h
parent29de3412ad611b1091903dce3ec53d5afe992589 (diff)
Always save QTextDocuments encoded in utf-8
Get rid of the options to set another encoding. In 2020, we should always write documents as utf-8. Change-Id: If39dd3a876f85a70735169113bce9c25f2d981b3 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/gui/text/qtextodfwriter_p.h')
-rw-r--r--src/gui/text/qtextodfwriter_p.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/text/qtextodfwriter_p.h b/src/gui/text/qtextodfwriter_p.h
index 98a6fdfa96..53d9084d80 100644
--- a/src/gui/text/qtextodfwriter_p.h
+++ b/src/gui/text/qtextodfwriter_p.h
@@ -86,7 +86,6 @@ public:
QTextOdfWriter(const QTextDocument &document, QIODevice *device);
bool writeAll();
- void setCodec(QTextCodec *codec) { m_codec = codec; }
void setCreateArchive(bool on) { m_createArchive = on; }
bool createArchive() const { return m_createArchive; }
@@ -116,7 +115,6 @@ private:
QIODevice *m_device;
QOutputStrategy *m_strategy;
- QTextCodec *m_codec;
bool m_createArchive;
QStack<QTextList *> m_listStack;