aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 11:56:05 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 12:03:51 +0200
commit5f0e3d4ea76fccf761926da7ab041b9da3bffc4a (patch)
treecc90df1d9f6e1d4a4940c3ee3eec62d714bb984f /tools
parent30f9affd163dbd615a8e842ca837bf31c7060b36 (diff)
qmllint: Handle UiArrayBindings properly
This doesn't actually properly process them yet but at least it's a step in the right direction and makes sure array elements aren't just added to the parent scope. Task-number: QTBUG-93358 Change-Id: I3d400abd10df032ee16c9c1dfc13562d36c22169 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/findwarnings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp
index 5979a6fc5e..3d0cedc393 100644
--- a/tools/qmllint/findwarnings.cpp
+++ b/tools/qmllint/findwarnings.cpp
@@ -139,7 +139,7 @@ void FindWarningVisitor::flushPendingSignalParameters()
void FindWarningVisitor::checkDefaultProperty(const QQmlJSScope::ConstPtr &scope)
{
- if (scope == m_exportedRootScope) // inapplicable
+ if (scope == m_exportedRootScope || scope->isArrayScope()) // inapplicable
return;
const QQmlJSScope *scopeOfDefaultProperty = nullptr;