diff options
Diffstat (limited to 'src/gui/image/qpicture.h')
-rw-r--r-- | src/gui/image/qpicture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/image/qpicture.h b/src/gui/image/qpicture.h index 8d8c2ce..c478ed9 100644 --- a/src/gui/image/qpicture.h +++ b/src/gui/image/qpicture.h @@ -81,6 +81,11 @@ public: void setBoundingRect(const QRect &r); QPicture& operator=(const QPicture &p); +#ifdef Q_COMPILER_RVALUE_REFS + inline QPicture &operator=(QPicture &&other) + { qSwap(d_ptr, other.d_ptr); return *this; } +#endif + inline void swap(QPicture &other) { d_ptr.swap(other.d_ptr); } void detach(); bool isDetached() const; |