6 property bool test: false
8 property real testData: 9
9 property real testData2: 9
15 realProperty: if (testData2 > 3) 9; else 11;
19 AliasBindingsAssignCorrectlyType {
22 aliasProperty: if (testData > 3) 14; else 12;
25 Component.onCompleted: {
26 // Check original binding works
27 if (myType.aliasProperty != 14) return;
30 if (myType.aliasProperty != 12) return;
32 // Change binding indirectly by modifying the "realProperty"
33 root.state = "change";
34 if (myType.aliasProperty != 9) return;
36 // Check the new binding works
38 if (myType.aliasProperty != 11) return;
40 // Try and trigger the old binding (that should have been removed)
42 if (myType.aliasProperty != 11) return;
44 // Restore the original binding
46 if (myType.aliasProperty != 14) return;
48 // Test the restored binding works
50 if (myType.aliasProperty != 12) return;
52 // Test the old binding isn't somehow hanging around and still in effect
54 if (myType.aliasProperty != 12) return;