QtQuick.Shapes: Declare dependency on QtQuick

Otherwise qmllint and other tools won't know what QQuickItem is in this
context.

Pick-to: 6.1
Change-Id: I68da08cf2c41f17a2623f30303ac8f66b7b9329a
Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2021-02-22 10:40:32 +01:00
parent 75b99a10b3
commit 1a4b0929de
3 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,8 @@ qt_internal_add_qml_module(qmlshapesplugin
VERSION "${CMAKE_PROJECT_VERSION}"
CLASSNAME QmlShapesPlugin
SKIP_TYPE_REGISTRATION
DEPENDENCIES
QtQuick
PLUGIN_OPTIONAL
SOURCES
plugin.cpp

View File

@ -0,0 +1,8 @@
import QtQuick.Shapes
Shape {
opacity: 0.2
width: 20
height: parent.height
containsMode: Shape.FillContains
}

View File

@ -383,6 +383,7 @@ void TestQmllint::cleanQmlCode_data()
QTest::newRow("attached") << QStringLiteral("attached.qml");
QTest::newRow("enumProperty") << QStringLiteral("enumProperty.qml");
QTest::newRow("externalEnumProperty") << QStringLiteral("externalEnumProperty.qml");
QTest::newRow("shapes") << QStringLiteral("shapes.qml");
}
void TestQmllint::cleanQmlCode()