From 698110b42fccbb75943f5972cff415d1502f85cd Mon Sep 17 00:00:00 2001 From: Sami Shalayel Date: Wed, 17 Jul 2024 15:45:27 +0200 Subject: qmllint: use correct category type for unresolvable default properties An unresolvable default property type is not a missing-property (which is about using non-existing properties), but an unresolved-type. This avoids having to write weird documentation about a missing-property warning actually being an unresolved-type warning. Pick-to: 6.7 6.8 Fixes: QTBUG-127309 Change-Id: I1dd35d9b8b5f2e625b789e118f0f614c9da648e2 Reviewed-by: Fabian Kosmale --- src/qmlcompiler/qqmljsimportvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmlcompiler/qqmljsimportvisitor.cpp') diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp index 82b0c64648..2b4687da77 100644 --- a/src/qmlcompiler/qqmljsimportvisitor.cpp +++ b/src/qmlcompiler/qqmljsimportvisitor.cpp @@ -610,7 +610,7 @@ void QQmlJSImportVisitor::processDefaultProperties() "missing an import.") .arg(defaultPropertyName) .arg(defaultProp.typeName()), - qmlMissingProperty, it.value().constFirst()->sourceLocation()); + qmlUnresolvedType, it.value().constFirst()->sourceLocation()); }; if (propType.isNull()) { -- cgit v1.2.3