diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-07 15:24:42 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-08 08:26:06 +0200 |
commit | 2bedff619c3775081bc5c8dfafa50fd7e11d8cb1 (patch) | |
tree | 31266e294c3117bdb593bb3338d2aaeb0751e2fd /src/plugins | |
parent | 9a9ff0df09eecaaed577860025bf77e38824245f (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/plugins')
-rw-r--r-- | src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp b/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp index 812c48b72e..3afda162e6 100644 --- a/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp +++ b/src/plugins/qmltooling/qmldbg_debugger/qqmlenginedebugservice.cpp @@ -259,7 +259,7 @@ QVariant QQmlEngineDebugServiceImpl::valueContents(QVariant value) const return value.toJsonDocument().toVariant(); default: if (QQmlMetaType::isValueType(metaType)) { - const QMetaObject *mo = QQmlMetaType::metaObjectForMetaType(metaType); + const QMetaObject *mo = QQmlMetaType::metaObjectForValueType(metaType); if (mo) { int toStringIndex = mo->indexOfMethod("toString()"); if (toStringIndex != -1) { |