aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.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/jsruntime/qv4engine.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/jsruntime/qv4engine.cpp')
-rw-r--r--src/qml/jsruntime/qv4engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index c17478c0cc..958a994cc3 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -1825,7 +1825,7 @@ QV4::ReturnedValue ExecutionEngine::fromData(
break;
}
- if (const QMetaObject *vtmo = QQmlMetaType::metaObjectForMetaType(metaType))
+ if (const QMetaObject *vtmo = QQmlMetaType::metaObjectForValueType(metaType))
return QV4::QQmlValueTypeWrapper::create(this, ptr, vtmo, metaType);
} else {
QV4::Scope scope(this);
@@ -1885,7 +1885,7 @@ QV4::ReturnedValue ExecutionEngine::fromData(
return sequentialIterableToJS(this, lst);
}
- if (const QMetaObject *vtmo = QQmlMetaType::metaObjectForMetaType(metaType))
+ if (const QMetaObject *vtmo = QQmlMetaType::metaObjectForValueType(metaType))
return QV4::QQmlValueTypeWrapper::create(this, ptr, vtmo, metaType);
}