summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-02-02 11:10:33 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-02-03 00:04:38 +0100
commit1aa16094c0ec1ea199e9e97835a5216265fdfd21 (patch)
tree01fe57b8e690ad7272184a6a3cd382d22732b883 /src/printsupport/kernel
parent97ca5f6161e905cf612dccfcf3ebdee8cd3ba807 (diff)
QPrintEngine: emit CMYK colors as CMYK when printing in PDF
When printing in PDF, QPrintEngine used to convert every color to RGB. Stop doing that -- if the user paints with a CMYK color, emit it in CMYK. Change-Id: I2714d243103501e4602dec9f225f5379ed8f7dec Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/printsupport/kernel')
-rw-r--r--src/printsupport/kernel/qprintengine_pdf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printsupport/kernel/qprintengine_pdf.cpp b/src/printsupport/kernel/qprintengine_pdf.cpp
index 1e2910464a..9dec15ae5b 100644
--- a/src/printsupport/kernel/qprintengine_pdf.cpp
+++ b/src/printsupport/kernel/qprintengine_pdf.cpp
@@ -109,7 +109,7 @@ void QPdfPrintEngine::setProperty(PrintEnginePropertyKey key, const QVariant &va
d->colorModel = QPdfEngine::ColorModel::Grayscale;
break;
case QPrinter::Color:
- d->colorModel = QPdfEngine::ColorModel::RGB;
+ d->colorModel = QPdfEngine::ColorModel::Auto;
break;
}
break;