QmlDesigner: Fix for missing QtQuick import

Fixes: QDS-14828
Change-Id: Id8ed1cd1daf16d0773a4ae0431745ab8956adb6b
Reviewed-by: Aleksei German <aleksei.german@qt.io>
(cherry picked from commit f92524e5d9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Aleksei German
2025-03-03 13:52:38 +01:00
parent 3d6af402d6
commit 3bf413f728

View File

@@ -410,6 +410,7 @@ void ItemLibraryModel::update(Model *model)
// we need to exclude all items from unsupported imports but only if they are not user-defined modules // we need to exclude all items from unsupported imports but only if they are not user-defined modules
if (!(entry.category() == ItemLibraryImport::userComponentsTitle()) if (!(entry.category() == ItemLibraryImport::userComponentsTitle())
&& !entry.requiredImport().isEmpty()
&& !mcuManager.allowedImports().contains(entry.requiredImport())) { && !mcuManager.allowedImports().contains(entry.requiredImport())) {
blocked = true; blocked = true;
} }