diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-01-30 17:33:27 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 08:37:49 +0100 |
commit | 331ea0aee6d0bb54625b25a6c8d2e59d2378fd50 (patch) | |
tree | cedb4f9d44d846e240b7beff60b7059b28bcf453 /src/quick | |
parent | 279e4ae7dd9c0b60c2e4dccb31363eb6bac04918 (diff) |
Document the limitations of AutoText's rich text detection.
Repeat the explanation given in Qt::mightBeRichText's documentation
for how rich text is identified and under what circumstances it may
fail to recognize it.
Task-number: QTBUG-21917
Change-Id: Ie012ddd2fd5f874da0ea819c354a1ed5b7573670
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src/quick')
-rw-r--r-- | src/quick/items/qquicktext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp index c556017a8d..0d4db31821 100644 --- a/src/quick/items/qquicktext.cpp +++ b/src/quick/items/qquicktext.cpp @@ -1609,7 +1609,11 @@ void QQuickText::resetMaximumLineCount() If the text format is \c Text.AutoText the text element will automatically determine whether the text should be treated as - styled text. This determination is made using Qt::mightBeRichText(). + styled text. This determination is made using Qt::mightBeRichText() + which uses a fast and therefore simple heuristic. It mainly checks + whether there is something that looks like a tag before the first + line break. Although the result may be correct for common cases, + there is no guarantee. Text.StyledText is an optimized format supporting some basic text styling markup, in the style of html 3.2: |