QIcon: Added a move constructor.

Change-Id: Idedb935352bf8a0cd7d4293f7b8530d5b9b17616
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Keith Gardner 2013-04-04 22:35:37 -05:00 committed by The Qt Project
parent 8c857622f0
commit e7deefbb60

View File

@ -62,6 +62,10 @@ public:
QIcon();
QIcon(const QPixmap &pixmap);
QIcon(const QIcon &other);
#ifdef Q_COMPILER_RVALUE_REFS
QIcon(QIcon &&other)
:d(0) { qSwap(d, other.d); }
#endif
explicit QIcon(const QString &fileName); // file or resource name
explicit QIcon(QIconEngine *engine);
~QIcon();