aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-03-06 08:07:56 +0100
committerAndy Shaw <andy.shaw@qt.io>2020-03-06 09:27:08 +0100
commitec33541cf3873bc311522d3ae24c75cf6aa28a6b (patch)
treee543edf77f4b42d34e372e652a52ce9f203789d4
parent069afedec9e42c1d3ce6673a405337dfbc309992 (diff)
Doc: clarify the fontSizeMode property in terms of Rich and Styled text
Fixes: QTBUG-56650 Change-Id: I7b750031f3af368de7f7cebe64a5d1ce77f68408 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/quick/items/qquicktext.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp
index f39e8e0316..216914197f 100644
--- a/src/quick/items/qquicktext.cpp
+++ b/src/quick/items/qquicktext.cpp
@@ -2650,6 +2650,12 @@ void QQuickText::setLineHeightMode(LineHeightMode mode)
If the text does not fit within the item bounds with the minimum font size
the text will be elided as per the \l elide property.
+
+ If the \l textFormat property is set to \l Text.RichText, this will have no effect at all as the
+ property will be ignored completely. If \l textFormat is set to \l Text.StyledText, then the
+ property will be respected provided there is no font size tags inside the text. If there are
+ font size tags, the property will still respect those. This can cause it to not fully comply with
+ the fontSizeMode setting.
*/
QQuickText::FontSizeMode QQuickText::fontSizeMode() const