diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-30 11:56:05 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-30 12:03:51 +0200 |
commit | 5f0e3d4ea76fccf761926da7ab041b9da3bffc4a (patch) | |
tree | cc90df1d9f6e1d4a4940c3ee3eec62d714bb984f /tools | |
parent | 30f9affd163dbd615a8e842ca837bf31c7060b36 (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.cpp | 2 |
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; |