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:
@@ -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()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user