diff options
Diffstat (limited to 'tools/qmllint/checkidentifiers.cpp')
-rw-r--r-- | tools/qmllint/checkidentifiers.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp index 911e08034a..208f44e51b 100644 --- a/tools/qmllint/checkidentifiers.cpp +++ b/tools/qmllint/checkidentifiers.cpp @@ -81,6 +81,9 @@ void CheckIdentifiers::checkMemberAccess(const QVector<FieldMember> &members, if (prop != nullptr && prop->isList()) { detectedRestrictiveKind = QLatin1String("list"); expectedNext.append(QLatin1String("length")); + } else if (outerScope->internalName() == QLatin1String("QString")) { + detectedRestrictiveKind = QLatin1String("QString"); + expectedNext.append(QLatin1String("length")); } QQmlJSScope::ConstPtr scope = outerScope; |