aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-04-07 13:01:53 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-04-07 13:40:52 +0200
commit4beba3a2b68a389c426791dd43c638f3539d8f20 (patch)
tree4e1efb52664987c5865edba2351dfaf332847a03 /tools
parentb28c8c87ec84dccc156603f8479fd0a8a06bc46c (diff)
When resolving property types, also update the property type names
Otherwise we end up with a mixture of QML and C++ names. Pick-to: 6.0 6.1 Task-number: QTBUG-92447 Change-Id: I94c44307d8dd762d11cfd8f178f33ab6a895ee83 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/checkidentifiers.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp
index cad72f9ff8..911e08034a 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -37,10 +37,7 @@
static const QStringList unknownBuiltins = {
QStringLiteral("alias"), // TODO: we cannot properly resolve aliases, yet
QStringLiteral("QJSValue"), // We cannot say anything intelligent about untyped JS values.
-
- // Same for generic variants
- QStringLiteral("variant"),
- QStringLiteral("var")
+ QStringLiteral("QVariant") // Same for generic variants
};
template<typename Visitor>