summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimagewriter.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2014-10-27 13:00:36 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2014-10-27 13:00:36 +0100
commit2eb26c170920d28213b71e549d5dac4663febb14 (patch)
tree8df5223ac114d758c2112a8fc787992175556418 /src/gui/image/qimagewriter.cpp
parent49ddae28e0dcd1c59dd5d742cffedd5290d1224a (diff)
parent81998b4e8e440076bd22a9164f0a93481c0e597a (diff)
Merge remote-tracking branch 'origin/5.4' into dev
Conflicts: src/gui/text/qfontdatabase.cpp Change-Id: I6ac1f55faa22b8e7b591386fb67f0333d0ea443d
Diffstat (limited to 'src/gui/image/qimagewriter.cpp')
-rw-r--r--src/gui/image/qimagewriter.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui/image/qimagewriter.cpp b/src/gui/image/qimagewriter.cpp
index d172d4008f..fa261df1a5 100644
--- a/src/gui/image/qimagewriter.cpp
+++ b/src/gui/image/qimagewriter.cpp
@@ -434,13 +434,16 @@ QString QImageWriter::fileName() const
}
/*!
- This is an image format specific function that sets the quality
- level of the image to \a quality. For image formats that do not
- support setting the quality, this value is ignored.
+ Sets the quality setting of the image format to \a quality.
- The value range of \a quality depends on the image format. For
- example, the "jpeg" format supports a quality range from 0 (low
- quality, high compression) to 100 (high quality, low compression).
+ Some image formats, in particular lossy ones, entail a tradeoff between a)
+ visual quality of the resulting image, and b) encoding execution time and
+ compression level. This function sets the level of that tradeoff for image
+ formats that support it. For other formats, this value is ignored.
+
+ The value range of \a quality depends on the image format. For example,
+ the "jpeg" format supports a quality range from 0 (low visual quality, high
+ compression) to 100 (high visual quality, low compression).
\sa quality()
*/
@@ -450,7 +453,7 @@ void QImageWriter::setQuality(int quality)
}
/*!
- Returns the quality level of the image.
+ Returns the quality setting of the image format.
\sa setQuality()
*/