summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimagereader.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-16 17:42:00 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-29 06:20:07 +0200
commit0fda43cf33cc7715f16d8764c4d96c6f88238712 (patch)
treec693c9ce99f1f02f8ec5de204cfe93bf1517b105 /src/gui/image/qimagereader.cpp
parent0303d8ddfa968e0c5a9ac08a12836ea3f34d4088 (diff)
Remove deprecated members from QtGui/image classes
Cleaning up those that are trivial to remove because they have direct replacements. Change-Id: I4f5c25884a01474fa2db8b369f0d883bd21edd5b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/image/qimagereader.cpp')
-rw-r--r--src/gui/image/qimagereader.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/gui/image/qimagereader.cpp b/src/gui/image/qimagereader.cpp
index 5cb7e1328e..684442eb8f 100644
--- a/src/gui/image/qimagereader.cpp
+++ b/src/gui/image/qimagereader.cpp
@@ -1149,43 +1149,6 @@ bool QImageReader::autoTransform() const
return false;
}
-#if QT_DEPRECATED_SINCE(5, 15)
-/*!
- \since 5.6
- \obsolete Use QColorSpace conversion on the QImage instead.
-
- This is an image format specific function that forces images with
- gamma information to be gamma corrected to \a gamma. For image formats
- that do not support gamma correction, this value is ignored.
-
- To gamma correct to a standard PC color-space, set gamma to \c 1/2.2.
-
- \sa gamma()
-*/
-void QImageReader::setGamma(float gamma)
-{
- if (d->initHandler() && d->handler->supportsOption(QImageIOHandler::Gamma))
- d->handler->setOption(QImageIOHandler::Gamma, gamma);
-}
-
-/*!
- \since 5.6
- \obsolete Use QImage::colorSpace() and QColorSpace::gamma() instead.
-
- Returns the gamma level of the decoded image. If setGamma() has been
- called and gamma correction is supported it will return the gamma set.
- If gamma level is not supported by the image format, \c 0.0 is returned.
-
- \sa setGamma()
-*/
-float QImageReader::gamma() const
-{
- if (d->initHandler() && d->handler->supportsOption(QImageIOHandler::Gamma))
- 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
image format is supported, and the device seems to contain valid