aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmllint')
-rw-r--r--tools/qmllint/checkidentifiers.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp
index 6500595c83..b718f0f691 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -355,8 +355,13 @@ bool CheckIdentifiers::operator()(
const auto typeIt = m_types.find(memberAccessBase.m_name);
if (typeIt != m_types.end()) {
- if (!checkMemberAccess(memberAccessChain, *typeIt))
+ if (typeIt->isNull()) {
+ // This is a namespaced import. Check with the full name.
+ if (!memberAccessChain.isEmpty())
+ memberAccessChain.front().m_name.prepend(memberAccessBase.m_name + u'.');
+ } else if (!checkMemberAccess(memberAccessChain, *typeIt)) {
noUnqualifiedIdentifier = false;
+ }
continue;
}