aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertycache.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-03-05 14:16:37 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2020-03-18 16:37:01 +0100
commitdf6d816fe3b0444db2c4165c86b330edd610e531 (patch)
tree56a98389badf3540996cc914bdc6778cd072c201 /src/qml/qml/qqmlpropertycache.cpp
parent2757f8e0e18d3222bf3802280ad28256d12bb810 (diff)
QQmlPropertyCache: Avoid costly string comparison
The qqmlecmacsript required changes, because the call to id makes the type now known to the QML engine. Change-Id: I73aed804ae8769c71676b44d8450e1dabf5baa6d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache.cpp')
-rw-r--r--src/qml/qml/qqmlpropertycache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp
index 09e16fdbe0..aa171c1c29 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -661,7 +661,7 @@ void QQmlPropertyCache::resolve(QQmlPropertyData *data) const
data->setPropType(QMetaType::type(retTy));
} else {
auto metaProperty = mo->property(data->coreIndex());
- data->setPropType(QMetaType::type(metaProperty.typeName()));
+ data->setPropType(metaProperty.metaType().id());
}
if (!data->isFunction()) {