0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 08:28:06 +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

@@ -299,7 +299,7 @@ void ReportRender::initRenderPage()
ScriptEngineType* se = ScriptEngineManager::instance().scriptEngine();
#ifdef USE_QJSENGINE
svCurrentPage = getCppOwnedJSValue(*se, m_renderPageItem);
svCurrentPage = getJSValue(*se, m_renderPageItem);
se->globalObject().setProperty("currentPage", svCurrentPage);
#else
svCurrentPage = se->globalObject().property("currentPage");