aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/attachedstyleproperties/MyStyle
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2024-12-16 14:04:35 +0100
committerTor Arne Vestbø <[email protected]>2024-12-19 12:39:38 +0100
commit43083e644174ceea08802127cefcbcc6f8e0e485 (patch)
tree30ce17ab0123f5ae0c0237899f4fbd463855c426 /examples/quickcontrols/attachedstyleproperties/MyStyle
parent3cdece6d7e08a53774820af6708a16ad3075e9c6 (diff)
Compute implicitSize based on implicitContentSize in Popup and subclasses
Popup uses a Pane as its popup item, so now that Pane reflects its explicitly set contentWidth/Height through implicitContentWidth/Height we can use the same expression for implicit width/height as regular controls, which hooks us into the safe area binding loop detection as well. Pick-to: 6.9 Change-Id: I3709978dae0271d7daf44fc6988f09f03df15b1f Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'examples/quickcontrols/attachedstyleproperties/MyStyle')
-rw-r--r--examples/quickcontrols/attachedstyleproperties/MyStyle/Popup.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols/attachedstyleproperties/MyStyle/Popup.qml b/examples/quickcontrols/attachedstyleproperties/MyStyle/Popup.qml
index 25c4ace64a..6b4f45b7f4 100644
--- a/examples/quickcontrols/attachedstyleproperties/MyStyle/Popup.qml
+++ b/examples/quickcontrols/attachedstyleproperties/MyStyle/Popup.qml
@@ -10,9 +10,9 @@ T.Popup {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
+ implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
+ implicitContentHeight + topPadding + bottomPadding)
padding: 12