mirror of https://github.com/qt/qtbase.git
QTextFormat: documentation fix
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 <jan-arve.saether@qt.io>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit fd96e11bb1
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b0a0a0fcfe
commit
16f7681904
|
@ -2123,7 +2123,7 @@ QFont QTextCharFormat::font() const
|
||||||
associated QTextBlockFormat that specifies its characteristics.
|
associated QTextBlockFormat that specifies its characteristics.
|
||||||
|
|
||||||
To cater for left-to-right and right-to-left languages you can set
|
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(),
|
set with setAlignment(). Margins are controlled by setTopMargin(),
|
||||||
setBottomMargin(), setLeftMargin(), setRightMargin(). Overall
|
setBottomMargin(), setLeftMargin(), setRightMargin(). Overall
|
||||||
indentation is set with setIndent(), the indentation of the first
|
indentation is set with setIndent(), the indentation of the first
|
||||||
|
|
Loading…
Reference in New Issue