diff options
Diffstat (limited to 'tools/qmllint/checkidentifiers.cpp')
-rw-r--r-- | tools/qmllint/checkidentifiers.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp index 93edb08ba0..ac8453b1cd 100644 --- a/tools/qmllint/checkidentifiers.cpp +++ b/tools/qmllint/checkidentifiers.cpp @@ -384,6 +384,16 @@ void CheckIdentifiers::operator()( continue; } + // If we're in a custom parser component (or one of their children) we cannot be sure + // that this is really an unqualified access. We have to err on the side of producing + // false negatives for the sake of usability. + if (qmlScope->isInCustomParserParent()) { + // We can handle Connections properly + if (qmlScope->baseType() + && qmlScope->baseType()->internalName() != u"QQmlConnections"_qs) + continue; + } + const auto location = memberAccessBase.m_location; if (baseIsPrefixed) { |