From 0fda43cf33cc7715f16d8764c4d96c6f88238712 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 16 Apr 2020 17:42:00 +0200 Subject: 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 --- src/gui/image/qimagewriter.cpp | 65 ------------------------------------------ 1 file changed, 65 deletions(-) (limited to 'src/gui/image/qimagewriter.cpp') diff --git a/src/gui/image/qimagewriter.cpp b/src/gui/image/qimagewriter.cpp index 33f5e491c7..519a222db1 100644 --- a/src/gui/image/qimagewriter.cpp +++ b/src/gui/image/qimagewriter.cpp @@ -497,37 +497,6 @@ int QImageWriter::compression() const return d->compression; } -#if QT_DEPRECATED_SINCE(5, 15) -/*! - \obsolete Use QColorSpace conversion on the QImage instead. - - This is an image format specific function that sets the gamma - level of the image to \a gamma. For image formats that do not - support setting the gamma level, this value is ignored. - - The value range of \a gamma depends on the image format. For - example, the "png" format supports a gamma range from 0.0 to 1.0. - - \sa quality() -*/ -void QImageWriter::setGamma(float gamma) -{ - d->gamma = gamma; -} - -/*! - \obsolete Use QImage::colorSpace() and QColorSpace::gamma() instead. - - Returns the gamma level of the image. - - \sa setGamma() -*/ -float QImageWriter::gamma() const -{ - return d->gamma; -} -#endif - /*! \since 5.4 @@ -653,40 +622,6 @@ QImageIOHandler::Transformations QImageWriter::transformation() const return d->transformation; } -#if QT_DEPRECATED_SINCE(5, 13) -/*! - \obsolete - - Use setText() instead. - - This is an image format specific function that sets the - description of the image to \a description. For image formats that - do not support setting the description, this value is ignored. - - The contents of \a description depends on the image format. - - \sa description() -*/ -void QImageWriter::setDescription(const QString &description) -{ - d->description = description; -} - -/*! - \obsolete - - Use QImageReader::text() instead. - - Returns the description of the image. - - \sa setDescription() -*/ -QString QImageWriter::description() const -{ - return d->description; -} -#endif - /*! \since 4.1 -- cgit v1.2.3