From 39944e8467e5e5d4457e9fec202413adf0fbb2d2 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 20 Jan 2021 14:20:48 +0100 Subject: qmllint: Remove exceptions for most unknown builtins All those types are properly defined in the qmltypes files now. We just need to search the enumerations the same way as methods and properties in order to find everything. Also, deduplicate the code that resolves properties, methods, and enums by using a common template for iterating the scopes. Change-Id: I0bf1423974d0ec8f602ecd0342522b3e981a8586 Reviewed-by: Fabian Kosmale --- src/qmlcompiler/qqmljstypedescriptionreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmlcompiler/qqmljstypedescriptionreader.cpp') diff --git a/src/qmlcompiler/qqmljstypedescriptionreader.cpp b/src/qmlcompiler/qqmljstypedescriptionreader.cpp index b1a1d18bfe..b3ef6092a0 100644 --- a/src/qmlcompiler/qqmljstypedescriptionreader.cpp +++ b/src/qmlcompiler/qqmljstypedescriptionreader.cpp @@ -390,7 +390,7 @@ void QQmlJSTypeDescriptionReader::readEnum(UiObjectDefinition *ast, const QQmlJS } } - scope->addEnumeration(metaEnum); + scope->addOwnEnumeration(metaEnum); } void QQmlJSTypeDescriptionReader::readParameter(UiObjectDefinition *ast, QQmlJSMetaMethod *metaMethod) -- cgit v1.2.3