Add variations of QPushButton with default property set

Change-Id: Ie928575b131c7031da9a4d735159ba3d14ccad6c
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Volker Hilsheimer 2021-11-23 14:13:26 +01:00
parent 84c9fcffee
commit 95907f9be4

View File

@ -271,6 +271,12 @@ void tst_Widgets::tst_QPushButton()
QBASELINE_CHECK(takeSnapshot(), "down");
testButton->setDown(false);
QBASELINE_CHECK(takeSnapshot(), "up");
testButton->setDefault(true);
QBASELINE_CHECK(takeSnapshot(), "default_up");
testButton->setDown(true);
QBASELINE_CHECK(takeSnapshot(), "default_down");
testButton->setDown(false);
}