From 8495906d74976a7cdd035c11f1d932a541ea5b15 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 2 Jul 2021 13:22:14 +0200 Subject: 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 Reviewed-by: Igor Bugaev (cherry picked from commit 983afd069a587ce2f5bb82c4d16a343ae98534a5) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/controls/data/tst_abstractbutton.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/controls/data/tst_abstractbutton.qml b/tests/auto/controls/data/tst_abstractbutton.qml index f2242feb..40c6f21d 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 {} } -- cgit v1.2.3