From 76c097c4d7eb873052de031fbc2d21579aa3947a Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 12 Jul 2019 18:18:21 +0200 Subject: Improve our color space terminology Replace our use of 'gamut' with 'primaries'. One is the axes of the color space, the other the volume of representable values. For the currently supported color spaces those are mostly equivalent, but when we later add support for scRgb, this would be misleading as it has the same primaries as sRGB but a much wider gamut, and we would like to use the same primaries/"gamut" id for it. Also few people would know what "the sRGB gamut" is, but "the sRGB primaries" is easily googable. Change-Id: I3348ccaae27a071ec77a4356331b9bbbf92e0d19 Reviewed-by: Allan Sandfeld Jensen --- src/gui/image/qpnghandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/image') diff --git a/src/gui/image/qpnghandler.cpp b/src/gui/image/qpnghandler.cpp index 8cfcbdb2d2..3bf4e9db15 100644 --- a/src/gui/image/qpnghandler.cpp +++ b/src/gui/image/qpnghandler.cpp @@ -648,7 +648,7 @@ bool QPngHandlerPrivate::readPngHeader() colorSpace = QColorSpace(primaries.whitePoint, primaries.redPoint, primaries.greenPoint, primaries.bluePoint, QColorSpace::TransferFunction::Gamma, fileGamma); } else { - colorSpace = QColorSpace(QColorSpace::Gamut::SRgb, + colorSpace = QColorSpace(QColorSpace::Primaries::SRgb, QColorSpace::TransferFunction::Gamma, fileGamma); } colorSpaceState = GammaChrm; -- cgit v1.2.3