summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-04-24 16:04:14 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-04-28 12:42:12 +0000
commitf15d6c3fa910d5200e245fe15ae9932f4b4eca78 (patch)
tree9f2d7352f2b2cb3779ffd2110aa0b9cf308adcb9 /src/gui/image/qimage.h
parent1576f62eaf962aaaaba83337284d23c732bfb52b (diff)
Preserve QImage metadata in image transforms
Some QImage methods were not preserving image metadata, or only preserving some of it. This adds the missing parts and adds a test for metadata. Change-Id: Ib5892a23e49dfde5ea26074d3deaa887fa930c6b Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/image/qimage.h')
-rw-r--r--src/gui/image/qimage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index 4ce99b9ab1..99044bd4e3 100644
--- a/src/gui/image/qimage.h
+++ b/src/gui/image/qimage.h
@@ -328,6 +328,7 @@ protected:
void rgbSwapped_inplace();
QImage convertToFormat_helper(Format format, Qt::ImageConversionFlags flags) const;
bool convertToFormat_inplace(Format format, Qt::ImageConversionFlags flags);
+ QImage smoothScaled(int w, int h) const;
private:
friend class QWSOnScreenSurface;