aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2024-02-28 16:06:02 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-07 12:07:39 +0000
commitfe7687785a823be20ce4e9f59fb8ff3bca157811 (patch)
tree61455bb05e649b5d5868d013397b3ae417b53c61
parent18159e199ebc5bb682617bbf5074e702654fa44d (diff)
Material: remove ComboBox's insets
These were probably necessary when it had drop shadows, but it no longer does. Doing this makes it the same height as TextField. [ChangeLog][Controls][Material] ComboBox's insets were removed. This may cause visual changes to UIs. Task-number: QTBUG-120067 Change-Id: Ia66f254eb5d556b7f629488a8f74e2417d7d7489 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit 4c355bf34efab09010d0f1cba4f5c3b6f5ebf0a3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit bfe8bffbb954b91e97cf550c437af736f5ff6919)
-rw-r--r--src/quickcontrols/material/ComboBox.qml3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/quickcontrols/material/ComboBox.qml b/src/quickcontrols/material/ComboBox.qml
index 28da813b37..5694aa055c 100644
--- a/src/quickcontrols/material/ComboBox.qml
+++ b/src/quickcontrols/material/ComboBox.qml
@@ -19,9 +19,6 @@ T.ComboBox {
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
- topInset: 6
- bottomInset: 6
-
leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)