diff options
author | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-05-11 09:52:24 +0200 |
---|---|---|
committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-05-12 15:06:42 +0200 |
commit | 5860c9c12c1c948ce1498da30581bfd5b9c05988 (patch) | |
tree | 46be2f41ebc66900ad8259a809cdb1327bc9c5b7 /tests/auto/qml/qmllint/data/untitled/main.qml | |
parent | 825d23a84687e67818dfff0485d08cd6d7186de3 (diff) | |
download | qtdeclarative-5860c9c12c1c948ce1498da30581bfd5b9c05988.tar.gz |
qmllint: Separate logic by import type in QQmlJSImportVisitor::visit
This patch reorganizes the logic of the import visitor to deal with each
import type (paths, qrc: urls, file: urls) separately.
This reorganisation fixes QTBUG-108803 which happened because "qrc:"
imports were being treated as paths leading to things like
":/untitled/qrc:/untitled/components".
Fixes: QTBUG-108803
Pick-to: 6.5
Change-Id: I5af20d10c533455215895be66b5cd98a977fd18a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data/untitled/main.qml')
-rw-r--r-- | tests/auto/qml/qmllint/data/untitled/main.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/untitled/main.qml b/tests/auto/qml/qmllint/data/untitled/main.qml new file mode 100644 index 0000000000..cf8980ab55 --- /dev/null +++ b/tests/auto/qml/qmllint/data/untitled/main.qml @@ -0,0 +1,9 @@ +pragma Strict + +import QtQuick +import 'qrc:/untitled/components' as C + +Window { + id: root + C.Foo {} +} |