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/qfontinfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/text/qfontinfo.h') diff --git a/src/gui/text/qfontinfo.h b/src/gui/text/qfontinfo.h index edaed281fe..c0c478f0c2 100644 --- a/src/gui/text/qfontinfo.h +++ b/src/gui/text/qfontinfo.h @@ -59,6 +59,8 @@ public: QFontInfo &operator=(const QFontInfo &); + void swap(QFontInfo &other) { qSwap(d, other.d); } + QString family() const; QString styleName() const; int pixelSize() const; -- cgit v1.2.3