QIcon: Added a move constructor.
Change-Id: Idedb935352bf8a0cd7d4293f7b8530d5b9b17616 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8c857622f0
commit
e7deefbb60
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user