diff options
Diffstat (limited to 'tests/auto/qml/qmllint/data/propertypass_pluginTest.qml')
-rw-r--r-- | tests/auto/qml/qmllint/data/propertypass_pluginTest.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/propertypass_pluginTest.qml b/tests/auto/qml/qmllint/data/propertypass_pluginTest.qml new file mode 100644 index 0000000000..728b014b85 --- /dev/null +++ b/tests/auto/qml/qmllint/data/propertypass_pluginTest.qml @@ -0,0 +1,24 @@ +import QtQuick 2.0 + +Item { + Text { + id: foo + text: "Foo" // Specific property we're targeting in one element + x: 5 // Property we're targeting regardless of type + y: x + 5 // Property used in a binding + font.bold: true // Not targeted + } + x: 5 // Property we're targeting regardless of type + + ListModel { id: listModel } + + ListView { // Entire type covered + model: listModel + height: 50 + } + + Component.onCompleted: { + console.log(foo.x); // Reading property from another component + foo.x = 30; // Writing property from another component + } +} |