diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-07 10:49:17 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-04-21 15:46:36 +0200 |
commit | 50916edd9d1707774c597abe1b7237e1a798fc53 (patch) | |
tree | ba761a0d1f017836fb1957212a63ff9854bce76c /src/gui/text/qtextdocument.h | |
parent | a23cb5cd06bcc3268387cb1abaa0dc2c2d3b13f4 (diff) |
Always encode HTML as utf-8
When converting a text document to HTML, always convert it to utf-8,
as required by the HTML standard. This also means that we remove
the optional encoding parameter.
Change-Id: I0bd2fc9df2d06734e1c5b8053b964fbfbb6881e1
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocument.h')
-rw-r--r-- | src/gui/text/qtextdocument.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocument.h b/src/gui/text/qtextdocument.h index 5a165331bf..369851ceea 100644 --- a/src/gui/text/qtextdocument.h +++ b/src/gui/text/qtextdocument.h @@ -147,7 +147,7 @@ public: QString metaInformation(MetaInformation info) const; #ifndef QT_NO_TEXTHTMLPARSER - QString toHtml(const QByteArray &encoding = QByteArray()) const; + QString toHtml() const; void setHtml(const QString &html); #endif |