summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2022-08-18 15:16:20 +0200
committerPaul Wicking <paul.wicking@qt.io>2022-08-23 20:49:47 +0200
commit767bac9c5e48ee47e053c7370a8c9bdbe139a7d9 (patch)
tree3036796f473bb2d87d99616dee990c7f7f78aa68 /src/gui/text
parent37bf3b883d428d2fe0cae6513777d0c25c18d4ad (diff)
Doc: Format certain operators in text
Use correct text formatting; this ensures e.g. the decrement operator isn't converted to an en dash in the docs. Apply to increment operator docs also for consistency. Task-number: QTBUG-105729 Change-Id: I5f126b90bc1d1b91d86e1f87c9b17a583841adb6 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qtextobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextobject.cpp b/src/gui/text/qtextobject.cpp
index 7cf9d36a89..1a201969f0 100644
--- a/src/gui/text/qtextobject.cpp
+++ b/src/gui/text/qtextobject.cpp
@@ -337,14 +337,14 @@ QTextFrameLayoutData::~QTextFrameLayoutData()
/*!
\fn QTextFrame::iterator QTextFrame::iterator::operator++(int)
- The postfix ++ operator (\c{i++}) advances the iterator to the
+ The postfix \c{++} operator (\c{i++}) advances the iterator to the
next item in the text frame, and returns an iterator to the old item.
*/
/*!
\fn QTextFrame::iterator QTextFrame::iterator::operator--(int)
- The postfix -- operator (\c{i--}) makes the preceding item in the
+ The postfix \c{--} operator (\c{i--}) makes the preceding item in the
current frame, and returns an iterator to the old item.
*/