aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2021-08-25 08:54:40 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-08-27 16:52:42 +0000
commitb002a1a7f1f27dfd37995a05dfcc0a215915daa7 (patch)
tree4317e079d223df79cc302f88aa8983c5929a5108
parente6ac480b45a021c2450cd6bb18f2e383f63da705 (diff)
DefaultGroupBox: don't assign bindings to the delegate's width and height
We should never assign anything to a delegate's width and height from the style. Those assignments will anyway be overwritten by QQuickControl upon a relayout. Instead, we should normally use implicitWidth and implicitHeight. But, special for a QQuickStyleItem, implicit size is already set from c++, based on qstyle. So remove the assignments from QML. Change-Id: Ied941e0b40e83e0a2771bb1cd7cb517cba8684d1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit aaa0ef458ae09d48dd2eccb55fdcfeebfcbb1e3b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/quicknativestyle/controls/DefaultGroupBox.qml4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/quicknativestyle/controls/DefaultGroupBox.qml b/src/quicknativestyle/controls/DefaultGroupBox.qml
index 228247f60f..09db97b775 100644
--- a/src/quicknativestyle/controls/DefaultGroupBox.qml
+++ b/src/quicknativestyle/controls/DefaultGroupBox.qml
@@ -82,10 +82,6 @@ T.GroupBox {
background: NativeStyle.GroupBox {
control: control
-
- width: contentItem.width + control.leftPadding + control.rightPadding - groupBoxPadding.left - groupBoxPadding.right
- height: contentItem.height + control.topPadding + control.bottomPadding - groupBoxPadding.top - groupBoxPadding.bottom
-
contentWidth: contentItem.implicitWidth
contentHeight: contentItem.implicitHeight
}