diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-03-05 14:16:37 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-03-18 16:37:01 +0100 |
commit | df6d816fe3b0444db2c4165c86b330edd610e531 (patch) | |
tree | 56a98389badf3540996cc914bdc6778cd072c201 /src/qml/qml/qqmlpropertycache.cpp | |
parent | 2757f8e0e18d3222bf3802280ad28256d12bb810 (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.cpp | 2 |
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()) { |