diff options
-rw-r--r-- | examples/quickcontrols2/texteditor/documenthandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quickcontrols2/texteditor/documenthandler.cpp b/examples/quickcontrols2/texteditor/documenthandler.cpp index 72608910..e82fbb8c 100644 --- a/examples/quickcontrols2/texteditor/documenthandler.cpp +++ b/examples/quickcontrols2/texteditor/documenthandler.cpp @@ -304,7 +304,7 @@ void DocumentHandler::load(const QUrl &fileUrl) if (mime.inherits("text/markdown")) { emit loaded(QString::fromUtf8(data), Qt::MarkdownText); } else { - auto encoding = QStringConverter::encodingForHtml(data.constData(), data.size()); + auto encoding = QStringConverter::encodingForHtml(data); if (encoding) { QStringDecoder decoder(*encoding); emit loaded(decoder(data), Qt::AutoText); |