diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-02-26 14:20:47 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-03-04 22:37:08 +0100 |
commit | 01c55405fa55add25a469bdaee8c562ab3ab8941 (patch) | |
tree | 4164c6e25692f685e050676db9dd1d6a3a83da54 /src/gui/image | |
parent | 3ae67b44341aea644b4e568c0eea6e972588da44 (diff) |
Add QColorSpace::description
A way to read the description of the profile from ICC, or set one
yourself.
Change-Id: I68622e30ee209cac99c41f3df934712c3548c0de
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qpnghandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpnghandler.cpp b/src/gui/image/qpnghandler.cpp index 20a86b4f8f..9943e7261a 100644 --- a/src/gui/image/qpnghandler.cpp +++ b/src/gui/image/qpnghandler.cpp @@ -965,7 +965,7 @@ bool QPNGImageWriter::writeImage(const QImage& image, int compression_in, const // Support the old gamma making it override transferfunction. if (gamma != 0.0 && !qFuzzyCompare(cs.gamma(), 1.0f / gamma)) cs = cs.withTransferFunction(QColorSpace::TransferFunction::Gamma, 1.0f / gamma); - QByteArray iccProfileName = QColorSpacePrivate::get(cs)->description.toLatin1(); + QByteArray iccProfileName = cs.description().toLatin1(); if (iccProfileName.isEmpty()) iccProfileName = QByteArrayLiteral("Custom"); QByteArray iccProfile = cs.iccProfile(); |