From 86ea8521c6f145be24c40c799b6b4e8f6e854e2b Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 2 Nov 2010 15:20:38 +0100 Subject: Add member-swap to shared datatypes that don't have it. For consistency. Merge-request: 871 Reviewed-by: Olivier Goffart --- src/gui/image/qpixmap.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/image/qpixmap.cpp') diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index 5383b7cb37..1b370c0176 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -439,6 +439,14 @@ QPixmap &QPixmap::operator=(const QPixmap &pixmap) return *this; } +/*! + \fn void QPixmap::swap(QPixmap &other) + \since 4.8 + + Swaps pixmap \a other with this pixmap. This operation is very + fast and never fails. +*/ + /*! Returns the pixmap as a QVariant. */ -- cgit v1.2.1