aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-02-05 08:50:37 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2020-02-05 09:33:14 +0100
commit9dccec88e3394d9d2dc52812d9607f0bfa01a2d2 (patch)
tree4d3987ce5e93b7ae7ce39128faa5c0c6e81b46d2 /tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml
parenta8bc011d459a4d080815a2675f2a0413c8bf09d2 (diff)
Inline components: fix name resolution
Inline components are an explicit component boundary, and therefore need some extra treatment. Change-Id: I03cc0d58f3565999f64675e8482ed3c3a325e8c0 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml')
-rw-r--r--tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml b/tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml
new file mode 100644
index 0000000000..ab125e9323
--- /dev/null
+++ b/tests/auto/qml/qqmllanguage/data/inlineComponentWithAlias.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.15
+
+Item {
+ id: root
+ component IC: SimpleItem {
+ width: i
+ Rectangle {
+ id: rect
+ color: "lime"
+ }
+ property alias color: rect.color
+ }
+ width: 200
+ IC {
+ objectName: "icInstance"
+ }
+}