aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-05-12 13:23:59 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-05-14 10:43:41 +0200
commit401b515626c46d915a8394a98fbe95cf1c6f4aa4 (patch)
tree2b3b78b371534b18f1bdb6ab38411743ab1479f4 /tools
parente6bc19d518b92d47639de871e255bfe73118cd17 (diff)
qmllint: Utilize qjsroot.qmltypes
Previously for some types like QString, QDateTime and QRegularExpression and others there was no sensible type information available. Now that we have qjsroot.qmltypes we can refer to its type information in order to resolve these types. Change-Id: Iea88cf467c694299396630e0f180ca6ff4ca3847 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/checkidentifiers.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp
index 66903c29a8..72e0d6fd7d 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -87,9 +87,6 @@ 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;
@@ -136,13 +133,6 @@ void CheckIdentifiers::checkMemberAccess(const QVector<FieldMember> &members,
continue;
}
- if (typeName == QLatin1String("QString")) {
- detectedRestrictiveKind = typeName;
- detectedRestrictiveName = access.m_name;
- expectedNext.append(QLatin1String("length"));
- continue;
- }
-
if (access.m_parentType.isEmpty()) {
if (binding.hasValue())
scope = binding.value();