0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

moveQObjectToScript() has been added to ScriptManager

This commit is contained in:
Arin Alexander
2019-01-30 01:53:21 +03:00
parent 6a18faf600
commit f48e414114
4 changed files with 12 additions and 1 deletions

View File

@@ -562,6 +562,13 @@ void ScriptEngineManager::clearTableOfContents(){
}
}
ScriptValueType ScriptEngineManager::moveQObjectToScript(QObject* object, const QString objectName)
{
ScriptValueType result = scriptEngine()->newQObject(object);
scriptEngine()->globalObject().setProperty(objectName, result);
return result;
}
void ScriptEngineManager::updateModel()
{