aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextedit.cpp
diff options
context:
space:
mode:
authorThibaut Cuvelier <cuvelier.thibaut@gmail.com>2022-07-28 00:19:49 +0200
committerThibaut Cuvelier <cuvelier.thibaut@gmail.com>2022-11-05 14:53:46 +0200
commitb09e9a0acf1292776424ee1ff49b3531202be7ae (patch)
tree71cb6572c7a9c8678cc4f084652cf9b1b87582ec /src/quick/items/qquicktextedit.cpp
parentfce7e9da713f0dd6e3c2e484a2ea346a8d481a4b (diff)
Use the right list-element type in documentation
The previous type, \value, did not parse correctly (missing Atom::ListLeft). The rendering in HTML, for instance, is also wrong: compare https://doc.qt.io/qt-6/qml-qtquick-textedit.html#font.hintingPreference-prop (\value) with https://doc.qt.io/qt-6/qml-qtquick-textedit.html#font.capitalization-prop (\li). Change-Id: If13ab920dce918aa56e31eb4b00a32a97d1de01f Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextedit.cpp')
-rw-r--r--src/quick/items/qquicktextedit.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/quick/items/qquicktextedit.cpp b/src/quick/items/qquicktextedit.cpp
index b1158899bf..191a33167f 100644
--- a/src/quick/items/qquicktextedit.cpp
+++ b/src/quick/items/qquicktextedit.cpp
@@ -310,21 +310,21 @@ QString QQuickTextEdit::text() const
\note This property only has an effect when used together with render type TextEdit.NativeRendering.
\list
- \value Font.PreferDefaultHinting - Use the default hinting level for the target platform.
- \value Font.PreferNoHinting - If possible, render text without hinting the outlines
- of the glyphs. The text layout will be typographically accurate, using the same metrics
- as are used e.g. when printing.
- \value Font.PreferVerticalHinting - If possible, render text with no horizontal hinting,
- but align glyphs to the pixel grid in the vertical direction. The text will appear
- crisper on displays where the density is too low to give an accurate rendering
- of the glyphs. But since the horizontal metrics of the glyphs are unhinted, the text's
- layout will be scalable to higher density devices (such as printers) without impacting
- details such as line breaks.
- \value Font.PreferFullHinting - If possible, render text with hinting in both horizontal and
- vertical directions. The text will be altered to optimize legibility on the target
- device, but since the metrics will depend on the target size of the text, the positions
- of glyphs, line breaks, and other typographical detail will not scale, meaning that a
- text layout may look different on devices with different pixel densities.
+ \li Font.PreferDefaultHinting - Use the default hinting level for the target platform.
+ \li Font.PreferNoHinting - If possible, render text without hinting the outlines
+ of the glyphs. The text layout will be typographically accurate, using the same metrics
+ as are used e.g. when printing.
+ \li Font.PreferVerticalHinting - If possible, render text with no horizontal hinting,
+ but align glyphs to the pixel grid in the vertical direction. The text will appear
+ crisper on displays where the density is too low to give an accurate rendering
+ of the glyphs. But since the horizontal metrics of the glyphs are unhinted, the text's
+ layout will be scalable to higher density devices (such as printers) without impacting
+ details such as line breaks.
+ \li Font.PreferFullHinting - If possible, render text with hinting in both horizontal and
+ vertical directions. The text will be altered to optimize legibility on the target
+ device, but since the metrics will depend on the target size of the text, the positions
+ of glyphs, line breaks, and other typographical detail will not scale, meaning that a
+ text layout may look different on devices with different pixel densities.
\endlist
\qml