diff options
Diffstat (limited to 'tests/auto/quickcontrols2/deferred/data/noSpuriousBinding.qml')
| -rw-r--r-- | tests/auto/quickcontrols2/deferred/data/noSpuriousBinding.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols2/deferred/data/noSpuriousBinding.qml b/tests/auto/quickcontrols2/deferred/data/noSpuriousBinding.qml new file mode 100644 index 0000000000..9f6a174cf4 --- /dev/null +++ b/tests/auto/quickcontrols2/deferred/data/noSpuriousBinding.qml @@ -0,0 +1,15 @@ +import test +import QtQuick + +Item { + id: root + property bool toggle: true + property int counter: 0 + + x: toggle ? 100 : tester.objectProperty.x + + DeferredPropertyTester { + id: tester + objectProperty: Item { x: { console.log("hi"); return 300; } } + } +} |
