From df6d816fe3b0444db2c4165c86b330edd610e531 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Thu, 5 Mar 2020 14:16:37 +0100 Subject: 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 --- src/qml/qml/qqmlpropertycache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmlpropertycache.cpp') 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()) { -- cgit v1.2.3