QJSEngine: Move old convertV2 to removed_api.cpp
Pick-to: 6.5 Change-Id: I7f700d64694c8651769841a0109d32e8f9a839b2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
506c74d782
commit
bb6bc1a06d
|
@ -17,5 +17,10 @@ QJSValue QJSEngine::create(int typeId, const void *ptr)
|
|||
return create(type, ptr);
|
||||
}
|
||||
|
||||
bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr)
|
||||
{
|
||||
return convertV2(value, QMetaType(type), ptr);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -848,13 +848,6 @@ bool QJSEngine::convertManaged(const QJSManagedValue &value, QMetaType type, voi
|
|||
return QV4::ExecutionEngine::metaTypeFromJS(*value.d, type, ptr);
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(7,0,0)
|
||||
bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr)
|
||||
{
|
||||
return convertV2(value, QMetaType(type), ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool QJSEngine::convertString(const QString &string, QMetaType metaType, void *ptr)
|
||||
{
|
||||
// have a string based value without engine. Do conversion manually
|
||||
|
|
|
@ -305,7 +305,7 @@ private:
|
|||
static bool convertPrimitive(const QJSPrimitiveValue &value, QMetaType type, void *ptr);
|
||||
static bool convertManaged(const QJSManagedValue &value, int type, void *ptr);
|
||||
static bool convertManaged(const QJSManagedValue &value, QMetaType type, void *ptr);
|
||||
#if QT_VERSION < QT_VERSION_CHECK(7,0,0)
|
||||
#if QT_QML_REMOVED_SINCE(6, 5)
|
||||
static bool convertV2(const QJSValue &value, int type, void *ptr); // only there for BC reasons
|
||||
#endif
|
||||
static bool convertV2(const QJSValue &value, QMetaType metaType, void *ptr);
|
||||
|
|
Loading…
Reference in New Issue