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.

Pick-to: 6.1
Change-Id: I389c9e513a3a65143aa6b6fbf508eee584970181
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2021-02-16 11:00:04 +01:00
parent edf8106be2
commit fe7318a6cf
3 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,8 @@ qt_internal_add_qml_module(qquicklayoutsplugin
DESIGNER_SUPPORTED
CLASSNAME QtQuickLayoutsPlugin
SKIP_TYPE_REGISTRATION
DEPENDENCIES
QtQuick
PLUGIN_OPTIONAL
SOURCES
plugin.cpp

View File

@ -0,0 +1,7 @@
import QtQuick
import QtQuick.Layouts
Item {
ColumnLayout { id: lll }
property real layoutX: lll.x
}

View File

@ -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()