Qt Quick Test and enums- Compare actual enums instead of enum values
-
Hi,
Let's say I have in MyText.qml:
Text { enum TextType { Normal, Heading } property int textType: MyText.TextType.Normal }
And in my tst_MyText.qml:
TestCase { function test_test() { ... compare(myText.textType, 0); ... } }
This works fine. However I would like to do something like this:
compare(myText.textType, myText.textType.Normal);
But I can't get it working despite trying many different way of writing the expected part.
Any way to make it work?
Cheers