diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-01-13 12:43:48 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-23 18:20:49 +0100 |
commit | c695543f76715f1f7acef32102c325399d0953cf (patch) | |
tree | 5104a7ac9f3f65c2d0151e743089b4afb5dd00ff /src/gui/image/qimage_compat.cpp | |
parent | 3d7d710424056a3c8a4062da234821acd91ee0af (diff) |
Ref qualified version of QImage::convertToFormat
Add ref qualified versions of QImage::convertToFormat, so that a
temporary QImage can be converted in-place to a format of equal depth.
[ChangeLog][QtGui][QImage]Added rvalue qualified convertToFormat method
for in-place conversion
Change-Id: I2eed5ffd63f5aea4ffa1147bf7607b02a49d9c5d
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/gui/image/qimage_compat.cpp')
-rw-r--r-- | src/gui/image/qimage_compat.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/image/qimage_compat.cpp b/src/gui/image/qimage_compat.cpp index 9886d392fb..9acf5c18fa 100644 --- a/src/gui/image/qimage_compat.cpp +++ b/src/gui/image/qimage_compat.cpp @@ -49,6 +49,12 @@ QT_BEGIN_NAMESPACE // These implementations must be the same as the inline versions in qimage.h + +QImage QImage::convertToFormat(Format f, Qt::ImageConversionFlags flags) const +{ + return convertToFormat_helper(f, flags); +} + QImage QImage::mirrored(bool horizontally, bool vertically) const { return mirrored_helper(horizontally, vertically); |