diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-07-13 16:32:17 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-07-18 02:42:57 +0000 |
commit | 7cc80e5dd76ee8331ed2c5cf1c222e72001c4c37 (patch) | |
tree | fe6c3141c9fd1dcadced3c85cbbc61f1565b6c25 /tests | |
parent | f11824fcb0a439beaebde2ec26f4574e207e0d07 (diff) |
testbench: clean up DelayButton page
- Uncomment code which is needed to visualize states.
- Remove print statements.
Change-Id: If0d0cc65fb51f842f6030f7dbd99e02ae1e835d3
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit f699a8d823e53de8ef407d2f05168e8a7a6d5b60)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/quickcontrols2/testbench/controls/DelayButton.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/manual/quickcontrols2/testbench/controls/DelayButton.qml b/tests/manual/quickcontrols2/testbench/controls/DelayButton.qml index c0f6faa29b..914c1c5632 100644 --- a/tests/manual/quickcontrols2/testbench/controls/DelayButton.qml +++ b/tests/manual/quickcontrols2/testbench/controls/DelayButton.qml @@ -63,10 +63,9 @@ QtObject { property Component component: Component { DelayButton { text: "DelayButton" -// enabled: !is("disabled") + 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 - onDownChanged: print("down", down) + down: is("pressed") ? true : undefined } } } |