diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-07-02 13:22:14 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-07-07 22:35:50 +0200 |
commit | 983afd069a587ce2f5bb82c4d16a343ae98534a5 (patch) | |
tree | bd008d891772c9e99f5f58388e4e2a4d7b157e5c /tests/auto | |
parent | 0ee5976cf25b9da0502368370b07d96914349ca0 (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.
Pick-to: 6.2
Change-Id: Ic79777cb60fbe593f4c09bec98e6e0fec379cfb9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Igor Bugaev <freedbrt@gmail.com>
Diffstat (limited to 'tests/auto')
-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 2a6fbecf..6e59d3a6 100644 --- a/tests/auto/controls/data/tst_abstractbutton.qml +++ b/tests/auto/controls/data/tst_abstractbutton.qml @@ -600,6 +600,8 @@ TestCase { Component { id: actionButton AbstractButton { + width: 100 + height: 50 action: Action { text: "Default" icon.name: checked ? "checked" : "unchecked" @@ -681,6 +683,8 @@ TestCase { Component { id: checkableButton AbstractButton { + width: 100 + height: 50 checkable: true action: Action {} } |