summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimagewriter.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-07-19 13:25:20 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-30 11:23:50 +0100
commit2e7a28958da2be6875ab6a5329871665ca340a04 (patch)
treecf2fbb97f4446a9a28739ee60c91235408cbcd0f /src/gui/image/qimagewriter.cpp
parent22d0e91970b6ac53a51a715e47cae4e4209cd78b (diff)
Deprecate QImageIOHandler gamma correction
Don't do gamma correction at image decoding time, it can be a whole lot more than just a simple gamma function, so it is better to use QColorSpace and QColorTransform. Change-Id: Iebc960bad6ecdd878240be965699d2df869572ad Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/image/qimagewriter.cpp')
-rw-r--r--src/gui/image/qimagewriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qimagewriter.cpp b/src/gui/image/qimagewriter.cpp
index 512da5c432..6e74b23f76 100644
--- a/src/gui/image/qimagewriter.cpp
+++ b/src/gui/image/qimagewriter.cpp
@@ -498,6 +498,7 @@ int QImageWriter::compression() const
return d->compression;
}
+#if QT_DEPRECATED_SINCE(5, 15)
/*!
This is an image format specific function that sets the gamma
level of the image to \a gamma. For image formats that do not
@@ -522,6 +523,7 @@ float QImageWriter::gamma() const
{
return d->gamma;
}
+#endif
/*!
\since 5.4