From 33937b28180d8e653e47b9e34c03972553976c6f Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 16 Feb 2021 11:00:04 +0100 Subject: Layouts: Depend on QtQuick If we don't declare the dependency our tools won't figure out where QQuickItem comes from when analyzing the dependency hierarchy of layouts. Change-Id: I389c9e513a3a65143aa6b6fbf508eee584970181 Reviewed-by: Mitch Curtis Reviewed-by: Fabian Kosmale (cherry picked from commit fe7318a6cf4398802f919766f2ac585bd844cf48) --- tests/auto/qml/qmllint/data/layouts.qml | 7 +++++++ tests/auto/qml/qmllint/tst_qmllint.cpp | 1 + 2 files changed, 8 insertions(+) create mode 100644 tests/auto/qml/qmllint/data/layouts.qml (limited to 'tests') diff --git a/tests/auto/qml/qmllint/data/layouts.qml b/tests/auto/qml/qmllint/data/layouts.qml new file mode 100644 index 0000000000..9051e93d36 --- /dev/null +++ b/tests/auto/qml/qmllint/data/layouts.qml @@ -0,0 +1,7 @@ +import QtQuick +import QtQuick.Layouts + +Item { + ColumnLayout { id: lll } + property real layoutX: lll.x +} diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index 8a07391ed0..c8e0dd2db3 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -365,6 +365,7 @@ void TestQmllint::cleanQmlCode_data() QTest::newRow("multiExtension") << QStringLiteral("multiExtension.qml"); QTest::newRow("segFault") << QStringLiteral("SegFault.qml"); QTest::newRow("grouped scope failure") << QStringLiteral("groupedScope.qml"); + QTest::newRow("layouts depends quick") << QStringLiteral("layouts.qml"); } void TestQmllint::cleanQmlCode() -- cgit v1.2.3