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/qfont.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/text/qfont.h') diff --git a/src/gui/text/qfont.h b/src/gui/text/qfont.h index 5e2fd5227b..38086a989d 100644 --- a/src/gui/text/qfont.h +++ b/src/gui/text/qfont.h @@ -161,6 +161,9 @@ public: QFont(const QFont &); ~QFont(); + void swap(QFont &other) + { qSwap(d, other.d); qSwap(resolve_mask, other.resolve_mask); } + QString family() const; void setFamily(const QString &); -- cgit v1.2.3