aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquicktheme_p.h
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-05-04 15:48:28 +0200
committerMitch Curtis <mitch.curtis@qt.io>2021-05-11 15:47:19 +0200
commita063cd0be5e8f108a0084831856f4af8c0e9159c (patch)
treeea7f6b7c63a28debff7799df35d0c1adfda2a012 /src/quicktemplates2/qquicktheme_p.h
parent468def83fc713e329ef9b2e150653837fe895159 (diff)
ToolTip: use contentWidth of Text contentItem to account for newlines
By default, QQuickPopupItem uses the implicitWidth of its contentItem, which is too large in the case of a ToolTip with newlines in the text. In that case, contentWidth refers to the width of the text including newlines, so we use that instead. [ChangeLog][Controls][ToolTip] The implicit width of ToolTips now accounts for newlines in the text. If you want to use the old behavior, set ToolTip's contentWidth to implicitContentWidth. Fixes: QTBUG-83630 Pick-to: 6.1 5.15 Change-Id: I7ca3805429acb68a13ead8f3545bb84a51fb1b72 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktheme_p.h')
0 files changed, 0 insertions, 0 deletions