aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsimportvisitor.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-01-20 14:20:48 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-01-21 08:45:16 +0100
commit39944e8467e5e5d4457e9fec202413adf0fbb2d2 (patch)
treeabf0b4dd17837649a42e0860be754f4f321d9aca /src/qmlcompiler/qqmljsimportvisitor.cpp
parent90be89d771425044a84e9e79e4e668e065acc825 (diff)
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 <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsimportvisitor.cpp')
-rw-r--r--src/qmlcompiler/qqmljsimportvisitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp
index 96c5b3b369..d5b5acd06b 100644
--- a/src/qmlcompiler/qqmljsimportvisitor.cpp
+++ b/src/qmlcompiler/qqmljsimportvisitor.cpp
@@ -298,7 +298,7 @@ bool QQmlJSImportVisitor::visit(QQmlJS::AST::UiEnumDeclaration *uied)
qmlEnum.addKey(member->member.toString());
qmlEnum.addValue(int(member->value));
}
- m_currentScope->addEnumeration(qmlEnum);
+ m_currentScope->addOwnEnumeration(qmlEnum);
return true;
}