summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextformat.h
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2021-09-08 09:52:50 +0200
committerDavid Faure <david.faure@kdab.com>2021-09-08 15:43:16 +0200
commitb67f887a048755bbab24df721636f9c294acb8b0 (patch)
tree11ab69fcc48586b8d0c7a3c6546556ad4310384e /src/gui/text/qtextformat.h
parent2d97c08bcdd145927f3cda4cad6508aecfc5ffe7 (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. Pick-to: 5.15 6.2 Change-Id: I49db542e2234c8068f85a636a81a7d8cdb7b5876 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/text/qtextformat.h')
0 files changed, 0 insertions, 0 deletions