diff options
author | David Faure <david.faure@kdab.com> | 2021-09-08 09:52:50 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-08 15:25:20 +0000 |
commit | 4f2ccd7f8397487f3e5c98a64186985f1484d10d (patch) | |
tree | 4d6a9f9a2686d7c265ec133564612c44e7184891 /util | |
parent | a3b93c9aa39e33275eb59f9e64432cd336097334 (diff) |
QTextOdfWriter: fix exporting pixmaps to ODT
The QVariant returned by resource() can contain either a QPixmap
or a QImage. The code here is now more similar to the one in
qtextimagehandler.cpp.
Also, the quality is 0 when not set, in which case we want a nice PNG
rather than a very very low quality JPG with just a few large blocks of
same-color pixels.
Change-Id: I49db542e2234c8068f85a636a81a7d8cdb7b5876
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit b67f887a048755bbab24df721636f9c294acb8b0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions