From 053626d9db6aa6054df12d0ecb59bcaad8a16253 Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Mon, 8 Feb 2021 13:42:44 +0100 Subject: qjsengine: Clarify to/fromScriptValue documentation Fixes: QTBUG-89956 Change-Id: I96439433b1f172e933c6c56daae639be7e18b931 Reviewed-by: Ulf Hermann --- src/qml/jsapi/qjsengine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml') diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp index 37b5306897..94b0628cd7 100644 --- a/src/qml/jsapi/qjsengine.cpp +++ b/src/qml/jsapi/qjsengine.cpp @@ -821,6 +821,7 @@ bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr) /*! \fn template QJSValue QJSEngine::toScriptValue(const T &value) Creates a QJSValue with the given \a value. + This works with any type \c{T} that has a \c{QMetaType}. \sa fromScriptValue() */ @@ -828,6 +829,7 @@ bool QJSEngine::convertV2(const QJSValue &value, int type, void *ptr) /*! \fn template T QJSEngine::fromScriptValue(const QJSValue &value) Returns the given \a value converted to the template type \c{T}. + This works with any type \c{T} that has a \c{QMetaType}. \sa toScriptValue() */ -- cgit v1.2.3