aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-21 14:11:10 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-22 09:57:57 +0200
commit826b7c3b18b2104cd0ff2c4b90892e72e149a88d (patch)
treeec337d2708e9944216b62c3c002c3765ed1dfa6f /tests/auto/qml/qmllint/data
parentec9d125f553c073ec7a431114a568eaeb6534b63 (diff)
qmllint: Resolve aliases in nested objects
So far we've just ignored them. Change-Id: I2ca522ef825a341a3f4bf1c2a42fb0376180cdda Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r--tests/auto/qml/qmllint/data/badAliasObject.qml10
-rw-r--r--tests/auto/qml/qmllint/data/goodAliasObject.qml10
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/badAliasObject.qml b/tests/auto/qml/qmllint/data/badAliasObject.qml
new file mode 100644
index 0000000000..1455b1daa9
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/badAliasObject.qml
@@ -0,0 +1,10 @@
+import QtQuick
+
+Item {
+ Item {
+ QtObject { id: inner }
+
+ property alias innerObj: inner
+ property string name: innerObj.wrongwrongwrong
+ }
+}
diff --git a/tests/auto/qml/qmllint/data/goodAliasObject.qml b/tests/auto/qml/qmllint/data/goodAliasObject.qml
new file mode 100644
index 0000000000..0fe0d33857
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/goodAliasObject.qml
@@ -0,0 +1,10 @@
+import QtQuick
+
+Item {
+ Item {
+ QtObject { id: inner }
+
+ property alias innerObj: inner
+ property string name: innerObj.objectName
+ }
+}