aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols
diff options
context:
space:
mode:
authorMitch Curtis <[email protected]>2023-12-12 16:14:49 +0800
committerMitch Curtis <[email protected]>2023-12-18 09:29:09 +0800
commit540848a4ed0d4c5fee1cd18f7122d3f7a90c3094 (patch)
tree39a7b7d3d73634dd73493b838a932270294c8f92 /tests/manual/quickcontrols
parenta6532e73207698482fd04535b139a76cff78d13f (diff)
Material: reduce padding for Dense variant of Button
The padding was increased with the Material 3 update (f47f8d69319fa7b0b71cc8036c5bdfd1e8407e70), but the Dense variant never had an effect on the values. This patch changes that. Fixes: QTBUG-119793 Pick-to: 6.5 6.6 6.7 Change-Id: Ic37bb7861fe5e3f3dc9e97fe4ee7369b487f89df Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'tests/manual/quickcontrols')
-rw-r--r--tests/manual/quickcontrols/material/pages/ButtonPage.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/manual/quickcontrols/material/pages/ButtonPage.qml b/tests/manual/quickcontrols/material/pages/ButtonPage.qml
index 3f861e7a70..22ee0894a7 100644
--- a/tests/manual/quickcontrols/material/pages/ButtonPage.qml
+++ b/tests/manual/quickcontrols/material/pages/ButtonPage.qml
@@ -13,6 +13,12 @@ Page {
header: RowLayout {
CheckBox {
+ id: textCheckBox
+ text: "Text"
+ checked: true
+ }
+
+ CheckBox {
id: iconCheckBox
text: "Icon"
}
@@ -88,7 +94,7 @@ Page {
model: 13
Button {
- text: modelData
+ text: textCheckBox.checked ? modelData : ""
flat: flatCheckBox.checked
icon.source: iconCheckBox.checked ? "qrc:/qt-project.org/imports/QtQuick/Controls/Basic/images/check.png" : ""