Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KWordQuiz
Commits
cb0466dc
Commit
cb0466dc
authored
Oct 26, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/kwqtableview.cpp
View file @
cb0466dc
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment