aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2/imagine/GroupBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols2/imagine/GroupBox.qml')
-rw-r--r--src/quickcontrols2/imagine/GroupBox.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quickcontrols2/imagine/GroupBox.qml b/src/quickcontrols2/imagine/GroupBox.qml
index b0a8645f72..3fc99d97e1 100644
--- a/src/quickcontrols2/imagine/GroupBox.qml
+++ b/src/quickcontrols2/imagine/GroupBox.qml
@@ -48,10 +48,10 @@ T.GroupBox {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
- topPadding: (background ? background.topPadding : 0) + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
+ topPadding: ((background as NinePatchImage)?.topPadding ?? 0) + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
+ leftPadding: ((background as NinePatchImage)?.leftPadding ?? 0)
+ rightPadding: ((background as NinePatchImage)?.rightPadding ?? 0)
+ bottomPadding: ((background as NinePatchImage)?.bottomPadding ?? 0)
label: Label {
width: control.width