aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/findwarnings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp
index dd7e3596af..27ede08dd2 100644
--- a/tools/qmllint/findwarnings.cpp
+++ b/tools/qmllint/findwarnings.cpp
@@ -151,6 +151,10 @@ void FindWarningVisitor::checkDefaultProperty(const QQmlJSScope::ConstPtr &scope
scopeOfDefaultProperty = s.data();
break;
}
+
+ // If the parent scope is based on Component it can have any child element
+ if (s->internalName() == QStringLiteral("QQmlComponent"))
+ return;
}
if (defaultPropertyName.isEmpty()) {
m_logger.log(QStringLiteral("Cannot assign to non-existent default property"),