diff options
-rw-r--r-- | src/imports/layouts/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/layouts.qml | 7 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/imports/layouts/CMakeLists.txt b/src/imports/layouts/CMakeLists.txt index f0f957c024..6cfb911ba9 100644 --- a/src/imports/layouts/CMakeLists.txt +++ b/src/imports/layouts/CMakeLists.txt @@ -11,6 +11,8 @@ qt_internal_add_qml_module(qquicklayoutsplugin DESIGNER_SUPPORTED CLASSNAME QtQuickLayoutsPlugin SKIP_TYPE_REGISTRATION + DEPENDENCIES + QtQuick PLUGIN_OPTIONAL SOURCES plugin.cpp 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() |