0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +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

@ -18,12 +18,13 @@ contains(CONFIG, easy_profiler){
!contains(CONFIG, qtscriptengine){
greaterThan(QT_MAJOR_VERSION, 4){
greaterThan(QT_MINOR_VERSION, 5){
CONFIG *= qjsengine
}
lessThan(QT_MINOR_VERSION, 6){
CONFIG *= qtscriptengine
}
#greaterThan(QT_MINOR_VERSION, 5){
# CONFIG *= qjsengine
#}
#lessThan(QT_MINOR_VERSION, 6){
# CONFIG *= qtscriptengine
#}
}
lessThan(QT_MAJOR_VERSION, 5){
CONFIG *= qtscriptengine

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