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.h | |
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.h')
-rw-r--r-- | src/gui/image/qimagereader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/image/qimagereader.h b/src/gui/image/qimagereader.h index 4e9a08b6e6..7cd3b81a7d 100644 --- a/src/gui/image/qimagereader.h +++ b/src/gui/image/qimagereader.h @@ -117,8 +117,12 @@ public: void setAutoTransform(bool enabled); bool autoTransform() const; +#if QT_DEPRECATED_SINCE(5, 15) + QT_DEPRECATED_VERSION_X_5_15("Use QColorSpace instead") void setGamma(float gamma); + QT_DEPRECATED_VERSION_X_5_15("Use QColorSpace instead") float gamma() const; +#endif QByteArray subType() const; QList<QByteArray> supportedSubTypes() const; |