summaryrefslogtreecommitdiffstats
path: root/tests/manual/textrendering/codeeditor/codeeditor.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-02-01 18:35:02 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-02-03 00:04:38 +0100
commit97ca5f6161e905cf612dccfcf3ebdee8cd3ba807 (patch)
tree5b3cbfbbc52bf8f4262a14031e439f4e3771b618 /tests/manual/textrendering/codeeditor/codeeditor.cpp
parent3a7cda715a9d409c249f91e320a9e1f8e9276f37 (diff)
QPdfWriter: use DeviceGray when in Grayscale mode
QPdfWriter has "always" supported a grayscale mode in order to support grayscale printing from QPrinter. When in this mode, colors were still emitted as RGB, just with equal quantities for each channel. But the PDF format itself supports grayscale colors, so avoid the conversions and emit colors directly in that. Change-Id: Id5ec3bc42b710909f32986c59d8fbd6f748e02f9 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'tests/manual/textrendering/codeeditor/codeeditor.cpp')
0 files changed, 0 insertions, 0 deletions