diff --git a/src/imports/shapes/CMakeLists.txt b/src/imports/shapes/CMakeLists.txt index bc25b33e14..fa1eb9297c 100644 --- a/src/imports/shapes/CMakeLists.txt +++ b/src/imports/shapes/CMakeLists.txt @@ -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 diff --git a/tests/auto/qml/qmllint/data/shapes.qml b/tests/auto/qml/qmllint/data/shapes.qml new file mode 100644 index 0000000000..9ca4c1e18b --- /dev/null +++ b/tests/auto/qml/qmllint/data/shapes.qml @@ -0,0 +1,8 @@ +import QtQuick.Shapes + +Shape { + opacity: 0.2 + width: 20 + height: parent.height + containsMode: Shape.FillContains +} diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index dd31c92ae2..1f11047f1f 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -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()