0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

QQmlEngine -> QJSEngine

This commit is contained in:
Arin Alexander
2018-05-08 10:53:27 +03:00
parent 2151a549e8
commit 5e6704c697
2 changed files with 8 additions and 8 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