QImage: Added a move constructor.

[QTBUG-30517]

Change-Id: I173de783ef8113ab10fb553cc82ef60904a15400
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Keith Gardner 2013-04-04 22:34:49 -05:00 committed by The Qt Project
parent adcc9a196a
commit 8c857622f0
1 changed files with 5 additions and 0 deletions

View File

@ -139,6 +139,11 @@ public:
explicit QImage(const QString &fileName, const char *format = 0);
QImage(const QImage &);
#ifdef Q_COMPILER_RVALUE_REFS
inline QImage(QImage &&other)
: QPaintDevice(), d(0)
{ qSwap(d, other.d); }
#endif
~QImage();
QImage &operator=(const QImage &);