From f6f517bc5442f8c649ed18136d099d9ae1092a22 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 5 Apr 2012 14:49:02 +0200 Subject: QtGui: add member-swap to shared classes Implemented as in other shared classes (e.g. QPen). Change-Id: I5b96d4a4795870d6252aa53de6fbaedde7c0095a Reviewed-by: Gunnar Sletta --- src/gui/text/qfontmetrics.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/gui/text/qfontmetrics.cpp') diff --git a/src/gui/text/qfontmetrics.cpp b/src/gui/text/qfontmetrics.cpp index 22b9038524..41e561bf7a 100644 --- a/src/gui/text/qfontmetrics.cpp +++ b/src/gui/text/qfontmetrics.cpp @@ -213,6 +213,14 @@ QFontMetrics &QFontMetrics::operator=(const QFontMetrics &fm) return *this; } +/*! + \fn void QFontMetrics::swap(QFontMetrics &other) + \since 5.0 + + Swaps this font metrics instance with \a other. This function is + very fast and never fails. +*/ + /*! Returns true if \a other is equal to this object; otherwise returns false. @@ -1004,6 +1012,16 @@ QFontMetricsF &QFontMetricsF::operator=(const QFontMetrics &other) return *this; } +/*! + \fn void QFontMetricsF::swap(QFontMetricsF &other) + \since 5.0 + + Swaps this font metrics instance with \a other. This function is + very fast and never fails. +*/ + + + /*! Constructs a font metrics object for \a font. -- cgit v1.2.3