diff options
author | Tor Arne Vestbø <[email protected]> | 2024-12-16 11:54:40 +0100 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2024-12-18 20:37:27 +0100 |
commit | ae7a573fe9d74f8d8355ca95f66ba160fa176270 (patch) | |
tree | 8957c88a3dea4406fb1f06b74adb6c34787436ae /src/quickcontrols/imagine/GroupBox.qml | |
parent | 7c968ac1512b8eede38f213708f314701547c784 (diff) |
Compute implicitSize based on implicitContentSize in Pane and subclasses
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: Ie31b740a1e405341fc5f0ed9673b213292e4afd9
Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'src/quickcontrols/imagine/GroupBox.qml')
-rw-r--r-- | src/quickcontrols/imagine/GroupBox.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/imagine/GroupBox.qml b/src/quickcontrols/imagine/GroupBox.qml index e833a92da1..b528661c2d 100644 --- a/src/quickcontrols/imagine/GroupBox.qml +++ b/src/quickcontrols/imagine/GroupBox.qml @@ -10,10 +10,10 @@ T.GroupBox { id: control implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, - contentWidth + leftPadding + rightPadding, + implicitContentWidth + leftPadding + rightPadding, implicitLabelWidth + leftPadding + rightPadding) implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, - contentHeight + topPadding + bottomPadding) + implicitContentHeight + topPadding + bottomPadding) topPadding: ((background as NinePatchImage)?.topPadding ?? 0) + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0) leftPadding: ((background as NinePatchImage)?.leftPadding ?? 0) |