Properly declare test data in qqmlstatemachine test


Pick-to: 6.2 6.3
Fixes: QTBUG-102252
Change-Id: I84b0f3841b8677e15b287ad6dab2c038d8107043
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commite847c99555e057ef7646bd572130af9da9b92cb5
parent381bbae1bb5c9a400841fe8511baf231d46a469b
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeMon, 4 Apr 2022 13:51:23 +0200