diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-12-16 12:37:07 +0100 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-12-18 20:37:38 +0100 |
| commit | db4dc0bc460f8ce7377926844596c2dde6ac0418 (patch) | |
| tree | b1236cbe8b35a3d03bf075a6fea146ee47fbd7fe /src/quickcontrols/ios/DialogButtonBox.qml | |
| parent | 0234ec9ef17bb4ffccde993d194baed6efae3f63 (diff) | |
Compute implicitSize based on implicitContentSize in Container and subclasses
Now that Container 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: If0a710a5eb4a35c91d02d7170b5e03e457e6bc12
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quickcontrols/ios/DialogButtonBox.qml')
| -rw-r--r-- | src/quickcontrols/ios/DialogButtonBox.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/ios/DialogButtonBox.qml b/src/quickcontrols/ios/DialogButtonBox.qml index b368a8290d..abffea1596 100644 --- a/src/quickcontrols/ios/DialogButtonBox.qml +++ b/src/quickcontrols/ios/DialogButtonBox.qml @@ -10,9 +10,9 @@ T.DialogButtonBox { 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) readonly property var orientation: (count === 2 || alignment !== 0) ? ListView.Horizontal : ListView.Vertical |
