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-09 09:58:04 +0200
commit06b332fe74cd2dc6ae424edc84f06ea38d5b898e (patch)
tree4d4fb18784599fa4ac07b4e8d8d6453874da1f4e /tools
parent62400a6278f5f36e231f89d86e3d036f4c9e457c (diff)
When resolving property types, also update the property type names
Otherwise we end up with a mixture of QML and C++ names. Task-number: QTBUG-92447 Change-Id: I94c44307d8dd762d11cfd8f178f33ab6a895ee83 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 4beba3a2b68a389c426791dd43c638f3539d8f20)
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 5136242059..1dd43613c6 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -58,10 +58,7 @@ private:
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
};
void CheckIdentifiers::printContext(