diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-07-19 13:25:20 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-30 11:23:50 +0100 |
commit | 2e7a28958da2be6875ab6a5329871665ca340a04 (patch) | |
tree | cf2fbb97f4446a9a28739ee60c91235408cbcd0f /src/gui/image/qimagereader.cpp | |
parent | 22d0e91970b6ac53a51a715e47cae4e4209cd78b (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/qimagereader.cpp')
-rw-r--r-- | src/gui/image/qimagereader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qimagereader.cpp b/src/gui/image/qimagereader.cpp index 6139cf99c9..3eb1e01863 100644 --- a/src/gui/image/qimagereader.cpp +++ b/src/gui/image/qimagereader.cpp @@ -1149,6 +1149,7 @@ bool QImageReader::autoTransform() const return false; } +#if QT_DEPRECATED_SINCE(5, 15) /*! \since 5.6 @@ -1181,6 +1182,7 @@ float QImageReader::gamma() const return d->handler->option(QImageIOHandler::Gamma).toFloat(); return 0.0; } +#endif /*! Returns \c true if an image can be read for the device (i.e., the |