From d2f21f427fa85ef7b2655b375b7a521a5c4b25c1 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 17 Jan 2014 13:41:27 +0100 Subject: Docs: add a working example to Text::fontSizeMode docs It's easy to miss the maximum bound specified by either the font.pointSize or font.pixelSize properties. Task-number: QTBUG-30005 Change-Id: If1dadebd6673f0e945a1ca95b64521f27d30f5a9 Reviewed-by: Alan Alpert --- src/quick/items/qquicktext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp index 038025856c..c9dee9a986 100644 --- a/src/quick/items/qquicktext.cpp +++ b/src/quick/items/qquicktext.cpp @@ -2345,6 +2345,10 @@ void QQuickText::setLineHeightMode(LineHeightMode mode) minimumPointSize or minimumPixelSize property and maximum bound specified by either the \l font.pointSize or \l font.pixelSize properties. + \qml + Text { text: "Hello"; fontSizeMode: Text.Fit; minimumPixelSize: 10; font.pixelSize: 72 } + \endqml + 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. */ -- cgit v1.2.3