aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-02-16 11:00:04 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-02-19 13:14:11 +0100
commit33937b28180d8e653e47b9e34c03972553976c6f (patch)
tree56a0240072cb3d1d4a4dfad8b45d6398413d4a6b /tests/auto/qml
parentf74d278994d35a3ac154ddd411009a785dd46800 (diff)
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 <mitch.curtis@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit fe7318a6cf4398802f919766f2ac585bd844cf48)
Diffstat (limited to 'tests/auto/qml')
-rw-r--r--tests/auto/qml/qmllint/data/layouts.qml7
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp1
2 files changed, 8 insertions, 0 deletions
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()