0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-09 05:57:14 +03:00

QQmlEngine -> QJSEngine

This commit is contained in:
Arin Alexander
2018-05-08 10:52:23 +03:00
parent eacc5c645e
commit 2151a549e8
3 changed files with 6 additions and 7 deletions

View File

@@ -138,13 +138,12 @@ namespace Const{
#endif
#ifdef USE_QJSENGINE
typedef QQmlEngine ScriptEngineType;
typedef QJSEngine ScriptEngineType;
typedef QJSValue ScriptValueType;
template <typename T>
static inline QJSValue getCppOwnedJSValue(QJSEngine &e, T *p)
static inline QJSValue getJSValue(QJSEngine &e, T *p)
{
QJSValue res = e.newQObject(p);
QQmlEngine::setObjectOwnership(p, QQmlEngine::CppOwnership);
return res;
}
#else