aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-06-07 15:24:42 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-06-08 08:26:06 +0200
commit2bedff619c3775081bc5c8dfafa50fd7e11d8cb1 (patch)
tree31266e294c3117bdb593bb3338d2aaeb0751e2fd /src/qml/qml/qqmlmetatype.cpp
parent9a9ff0df09eecaaed577860025bf77e38824245f (diff)
Rename QQmlMetaType::metaObjectForMetaType into metaObjectForValueType
It really only works for value types and it's not intended to do anythign else. The name should reflect this. Change-Id: Ib73bf7e9655971f7826fe72145e2d2fab363363c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 79bb95c8c2..e412263825 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -1578,7 +1578,7 @@ bool QQmlMetaType::isValueType(QMetaType type)
return valueType(type) != nullptr;
}
-const QMetaObject *QQmlMetaType::metaObjectForMetaType(QMetaType metaType)
+const QMetaObject *QQmlMetaType::metaObjectForValueType(QMetaType metaType)
{
const int t = metaType.id();
switch (t) {
@@ -1643,7 +1643,7 @@ QQmlValueType *QQmlMetaType::valueType(QMetaType type)
if (it != data->metaTypeToValueType.constEnd())
return *it;
- if (const QMetaObject *mo = metaObjectForMetaType(type))
+ if (const QMetaObject *mo = metaObjectForValueType(type))
return *data->metaTypeToValueType.insert(idx, new QQmlValueType(idx, mo));
return *data->metaTypeToValueType.insert(idx, nullptr);
}