summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-08-20 20:01:54 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-08-28 21:18:16 +0000
commitfd96e11bb1200902ff7ec2bbe6f3903b2d96bdd8 (patch)
treeee4af1966bf27713886abd68493c5a3b5bc3fef7
parentd865e3ef1db53770f96f3800f75467edd7cdf3c7 (diff)
QTextFormat: documentation fix
The QTextFormat description refers to setDirection() but this function does not exist. The correct function name is setLayoutDirection() even in Qt4. Pick-to: 6.6 6.5 6.2 5.15 Change-Id: I2d1f49fba558874b5875d8d93ef61d6208134609 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/gui/text/qtextformat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp
index ec91236f55..a383a290a7 100644
--- a/src/gui/text/qtextformat.cpp
+++ b/src/gui/text/qtextformat.cpp
@@ -2169,7 +2169,7 @@ QFont QTextCharFormat::font() const
associated QTextBlockFormat that specifies its characteristics.
To cater for left-to-right and right-to-left languages you can set
- a block's direction with setDirection(). Paragraph alignment is
+ a block's direction with setLayoutDirection(). Paragraph alignment is
set with setAlignment(). Margins are controlled by setTopMargin(),
setBottomMargin(), setLeftMargin(), setRightMargin(). Overall
indentation is set with setIndent(), the indentation of the first