Commit cb0466dc authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix QTextDocument::toHtml in Qt6

Using UTF-8 is the default now
parent c4885895
Pipeline #256081 passed with stage
in 49 seconds
......@@ -103,7 +103,11 @@ bool KWQTableView::doHtmlExport(const QUrl &url)
out.setCodec("utf-8");
#endif
createPages(&printer, &td, false);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
out << td.toHtml("utf-8");
#else
out << td.toHtml();
#endif
data.close();
success = true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment