From 4cd06638c198c7ed48680c63e9df943e3680e89e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 25 Sep 2020 16:14:53 +0200 Subject: qmllint: Make imports local Imports are not transitive. qmllint gets this wrong so far. Fixing it reveals two tests where we use types we haven't imported. Import the relevant modules. Change-Id: I45f3229468d54137f97d6b699f3a98a1349bc412 Reviewed-by: Fabian Kosmale --- tests/auto/qml/qmllint/data/AttachedType.qml | 1 + tests/auto/qml/qmllint/data/importing_js.qml | 1 + 2 files changed, 2 insertions(+) (limited to 'tests/auto/qml/qmllint') diff --git a/tests/auto/qml/qmllint/data/AttachedType.qml b/tests/auto/qml/qmllint/data/AttachedType.qml index 02fa514e83..f852a39a22 100644 --- a/tests/auto/qml/qmllint/data/AttachedType.qml +++ b/tests/auto/qml/qmllint/data/AttachedType.qml @@ -1,4 +1,5 @@ import Things 1.0 +import QtQuick Item { property real test: Screen.pixelDensity * 0.5 diff --git a/tests/auto/qml/qmllint/data/importing_js.qml b/tests/auto/qml/qmllint/data/importing_js.qml index fa6cf797db..b2d7a34fe6 100644 --- a/tests/auto/qml/qmllint/data/importing_js.qml +++ b/tests/auto/qml/qmllint/data/importing_js.qml @@ -1,4 +1,5 @@ import "QTBUG-45916.js" as JSTest +import QtQuick Item { id: root -- cgit v1.2.3