forked from qt-creator/qt-creator
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:
@@ -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
|
||||
if (!(entry.category() == ItemLibraryImport::userComponentsTitle())
|
||||
&& !entry.requiredImport().isEmpty()
|
||||
&& !mcuManager.allowedImports().contains(entry.requiredImport())) {
|
||||
blocked = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user