summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorKeith Gardner <kreios4004@gmail.com>2013-04-04 22:35:37 -0500
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-08 16:28:24 +0200
commite7deefbb60882022459459a399e075d636632bd3 (patch)
tree22b0a9160b8fbfd5d1acd5435ec04e356e0a7793 /src/gui/image
parent8c857622f07cd6a63cdf9dab79a0112b39da4f91 (diff)
QIcon: Added a move constructor.
Change-Id: Idedb935352bf8a0cd7d4293f7b8530d5b9b17616 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qicon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/image/qicon.h b/src/gui/image/qicon.h
index e81bea69d6..f1a78b508c 100644
--- a/src/gui/image/qicon.h
+++ b/src/gui/image/qicon.h
@@ -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();