mirror of https://github.com/qt/qtbase.git
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>
This commit is contained in:
parent
97ca5f6161
commit
1aa16094c0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue