diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-07-02 13:22:14 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-07-12 11:25:48 +0200 |
commit | 8495906d74976a7cdd035c11f1d932a541ea5b15 (patch) | |
tree | 34df16681f2d8347031a31c2dd7a64c2746809a2 /tests | |
parent | 17f89df44c6383cce8d614ff878b44ce7fc62a58 (diff) |
tst_abstractbutton.qml: give buttons a size
They're abstract hence not styled, so they won't have a size, and after
the recent changes to qtdeclarative, will not receive events.
Amends 6ea8c21ccf1bf4f88361bc1ad99944b1cf38aba4.
Change-Id: Ic79777cb60fbe593f4c09bec98e6e0fec379cfb9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Igor Bugaev <freedbrt@gmail.com>
(cherry picked from commit 983afd069a587ce2f5bb82c4d16a343ae98534a5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_abstractbutton.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_abstractbutton.qml b/tests/auto/controls/data/tst_abstractbutton.qml index f2242feb11..40c6f21d60 100644 --- a/tests/auto/controls/data/tst_abstractbutton.qml +++ b/tests/auto/controls/data/tst_abstractbutton.qml @@ -597,6 +597,8 @@ TestCase { Component { id: actionButton AbstractButton { + width: 100 + height: 50 action: Action { text: "Default" icon.name: checked ? "checked" : "unchecked" @@ -678,6 +680,8 @@ TestCase { Component { id: checkableButton AbstractButton { + width: 100 + height: 50 checkable: true action: Action {} } |