diff options
Diffstat (limited to 'tests/auto/qml/qmllint/data/goodAttachedPropertyNested.qml')
-rw-r--r-- | tests/auto/qml/qmllint/data/goodAttachedPropertyNested.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/goodAttachedPropertyNested.qml b/tests/auto/qml/qmllint/data/goodAttachedPropertyNested.qml new file mode 100644 index 0000000000..98d7726063 --- /dev/null +++ b/tests/auto/qml/qmllint/data/goodAttachedPropertyNested.qml @@ -0,0 +1,20 @@ +import AttachedProperties 1.0 +QtObject { + id: root + TestType.object: Component {} + TestType.count: 42 + 2 + + Component.onCompleted: { + TestType.count = 42; + console.log(TestType.object.progress); + } + + QtObject { + TestType.count: 43 + Component.onCompleted: { + console.log(TestType.count); + console.log(root.TestType.count); + console.log(root.TestType.object.progress); + } + } +} |