aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols/testbench/controls/DelayButton.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2025-11-21 11:58:18 +0800
committerMitch Curtis <mitch.curtis@qt.io>2025-11-24 10:44:55 +0800
commit21357d8bfb847fb66f2671e386e579a751f64dcb (patch)
tree1376c1cbe1c281f247b2f63016cf40e5c021ab72 /tests/manual/quickcontrols/testbench/controls/DelayButton.qml
parentb00d71760be5695bb97afc991cf1e21ca9730fb1 (diff)
testbench: add icons to more controls
Not all styles display icons for all controls, but it's good to have complete coverage in testbench anyway. Pick-to: 6.8 6.10 Change-Id: Ic347c408ababca4c8deb9acea83c26fa36c7ea75 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'tests/manual/quickcontrols/testbench/controls/DelayButton.qml')
-rw-r--r--tests/manual/quickcontrols/testbench/controls/DelayButton.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/manual/quickcontrols/testbench/controls/DelayButton.qml b/tests/manual/quickcontrols/testbench/controls/DelayButton.qml
index 8509932a0d..16cd5928c0 100644
--- a/tests/manual/quickcontrols/testbench/controls/DelayButton.qml
+++ b/tests/manual/quickcontrols/testbench/controls/DelayButton.qml
@@ -11,6 +11,12 @@ QtObject {
["disabled", "checked"],
["pressed"],
["checked"],
+ ["icon"],
+ ["icon", "disabled"],
+ ["icon", "pressed"],
+ ["icon", "highlighted"],
+ ["icon", "highlighted", "pressed"],
+ ["icon", "mirrored"]
]
property Component component: Component {
@@ -19,6 +25,9 @@ QtObject {
enabled: !is("disabled")
// Only set it if it's pressed, or the non-pressed examples will have no press effects
down: is("pressed") ? true : undefined
+ icon.source: is("icon") ? Utils.iconUrl : ""
+
+ LayoutMirroring.enabled: is("mirrored")
}
}
}