diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-04-05 14:49:02 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-03 01:20:15 +0200 |
commit | f6f517bc5442f8c649ed18136d099d9ae1092a22 (patch) | |
tree | b3f0b9745edc024612c9f63bdd1c200f1b34945f /src/gui/text/qtextformat.h | |
parent | 6c59cdecee42dad1e100857314d28a3d8279a164 (diff) |
QtGui: add member-swap to shared classes
Implemented as in other shared classes (e.g. QPen).
Change-Id: I5b96d4a4795870d6252aa53de6fbaedde7c0095a
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/text/qtextformat.h')
-rw-r--r-- | src/gui/text/qtextformat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextformat.h b/src/gui/text/qtextformat.h index 6843995124..58525a3dd0 100644 --- a/src/gui/text/qtextformat.h +++ b/src/gui/text/qtextformat.h @@ -291,6 +291,9 @@ public: QTextFormat &operator=(const QTextFormat &rhs); ~QTextFormat(); + void swap(QTextFormat &other) + { qSwap(d, other.d); qSwap(format_type, other.format_type); } + void merge(const QTextFormat &other); inline bool isValid() const { return type() != InvalidFormat; } |