summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qbitmap.h
diff options
context:
space:
mode:
authorAnton Kudryavtsev <anton.kudryavtsev@corp.mail.ru>2018-01-30 17:44:54 +0300
committerAnton Kudryavtsev <antkudr@mail.ru>2018-02-07 12:10:32 +0000
commitaec6fae60b4e229b7e00e534c47d341caf49cddc (patch)
tree158d41620d90892b5a7edf7104a3ee6a2e0369b9 /src/gui/image/qbitmap.h
parent806c6abaddbd1c92e2733f1584cc885e7149d181 (diff)
Add overloaded QBitmap::fromImage that takes QImage rvalue
... and use it. [ChangeLog][QtGui][QBitmap] Add overloaded QBitmap::fromImage that takes QImage rvalue Change-Id: Idb6e6bb1645371996700349714041cc54bb3d005 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/image/qbitmap.h')
-rw-r--r--src/gui/image/qbitmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qbitmap.h b/src/gui/image/qbitmap.h
index 6a8c8b3457..188064fccf 100644
--- a/src/gui/image/qbitmap.h
+++ b/src/gui/image/qbitmap.h
@@ -72,6 +72,7 @@ public:
inline void clear() { fill(Qt::color0); }
static QBitmap fromImage(const QImage &image, Qt::ImageConversionFlags flags = Qt::AutoColor);
+ static QBitmap fromImage(QImage &&image, Qt::ImageConversionFlags flags = Qt::AutoColor);
static QBitmap fromData(const QSize &size, const uchar *bits,
QImage::Format monoFormat = QImage::Format_MonoLSB);