From 3ba8179d6b5dc687607da285059906bc462fb974 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sun, 20 Aug 2023 20:01:54 +0200 Subject: [PATCH] QTextFormat: documentation fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The QTextFormat description refers to setDirection() but this function does not exist. The correct function name is setLayoutDirection() even in Qt4. Change-Id: I2d1f49fba558874b5875d8d93ef61d6208134609 Reviewed-by: Jan Arve Sæther Reviewed-by: Kai Köhne Reviewed-by: Shawn Rutledge (cherry picked from commit fd96e11bb1200902ff7ec2bbe6f3903b2d96bdd8) Reviewed-by: Qt Cherry-pick Bot --- src/gui/text/qtextformat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp index ec91236f55c..a383a290a7e 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