summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qtextcursor.h')
-rw-r--r--src/gui/text/qtextcursor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qtextcursor.h b/src/gui/text/qtextcursor.h
index bf7c4a8787..f9441daf6d 100644
--- a/src/gui/text/qtextcursor.h
+++ b/src/gui/text/qtextcursor.h
@@ -79,6 +79,8 @@ public:
QTextCursor &operator=(const QTextCursor &other);
~QTextCursor();
+ void swap(QTextCursor &other) { qSwap(d, other.d); }
+
bool isNull() const;
enum MoveMode {