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:
Giuseppe D'Angelo 2024-02-02 11:10:33 +01:00
parent 97ca5f6161
commit 1aa16094c0
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ void QPdfPrintEngine::setProperty(PrintEnginePropertyKey key, const QVariant &va
d->colorModel = QPdfEngine::ColorModel::Grayscale; d->colorModel = QPdfEngine::ColorModel::Grayscale;
break; break;
case QPrinter::Color: case QPrinter::Color:
d->colorModel = QPdfEngine::ColorModel::RGB; d->colorModel = QPdfEngine::ColorModel::Auto;
break; break;
} }
break; break;