From 7a9a778604a03473b6c4ef8a481ba3cc06d48265 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 5 Jan 2024 14:08:32 +0100 Subject: QtQml: Remove QQmlTypeLoader from QQmlImport The type loader belongs to the engine and we must not store it in engine-independent data structures. We do want the import cache to be stored in the type registry, though (in a separate change). Change-Id: I2828f5098b27bf1fc96852fc2bd160db44b109e7 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmlpropertyvalidator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlpropertyvalidator.cpp') diff --git a/src/qml/qml/qqmlpropertyvalidator.cpp b/src/qml/qml/qqmlpropertyvalidator.cpp index aecce2da30..05b31829a7 100644 --- a/src/qml/qml/qqmlpropertyvalidator.cpp +++ b/src/qml/qml/qqmlpropertyvalidator.cpp @@ -201,7 +201,8 @@ QVector QQmlPropertyValidator::validateObject( QQmlType type; QQmlImportNamespace *typeNamespace = nullptr; imports->resolveType( - stringAt(binding->propertyNameIndex), &type, nullptr, &typeNamespace); + QQmlTypeLoader::get(enginePrivate), stringAt(binding->propertyNameIndex), + &type, nullptr, &typeNamespace); if (typeNamespace) return recordError(binding->location, tr("Invalid use of namespace")); return recordError(binding->location, tr("Invalid attached object assignment")); -- cgit v1.2.3