aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsscope.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-11-11 14:12:55 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-11-12 08:06:34 +0100
commit6a605df673380ffe4e7ee24417175f58ba7972a4 (patch)
tree182471e75532eefba19aede0a2690688db036ee5 /src/qmlcompiler/qqmljsscope.cpp
parent262d7eb305e1dea8dac660bec3ccc50193258ea9 (diff)
QmlCompiler: Allow more convenient access to enums in QQmlJSScope
Change-Id: Ibac4dd7641a89b686bee63cf974b2257a35631a2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope.cpp')
-rw-r--r--src/qmlcompiler/qqmljsscope.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljsscope.cpp b/src/qmlcompiler/qqmljsscope.cpp
index ed029208dc..388de620b0 100644
--- a/src/qmlcompiler/qqmljsscope.cpp
+++ b/src/qmlcompiler/qqmljsscope.cpp
@@ -98,12 +98,12 @@ QQmlJSMetaMethod QQmlJSScope::method(const QString &name) const
bool QQmlJSScope::isIdInCurrentQMlScopes(const QString &id) const
{
if (m_scopeType == QQmlJSScope::QMLScope)
- return m_properties.contains(id) || m_methods.contains(id) || m_enums.contains(id);
+ return m_properties.contains(id) || m_methods.contains(id) || m_enumerations.contains(id);
const auto qmlScope = findCurrentQMLScope(parentScope());
return qmlScope->m_properties.contains(id)
|| qmlScope->m_methods.contains(id)
- || qmlScope->m_enums.contains(id);
+ || qmlScope->m_enumerations.contains(id);
}
bool QQmlJSScope::isIdInCurrentJSScopes(const QString &id) const