Showing the changes to libraries/script-engine/src/ScriptManagerScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -12,9 +12,21 @@ · 11 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | #include "ScriptManager.h" |
| 14 | 14 | #include "ScriptManagerScriptingInterface.h" |
| 15 | +#include <QMetaType> | |
| 16 | + | |
| 15 | 17 | |
| 16 | 18 | |
| 17 | 19 | ScriptManagerScriptingInterface::ScriptManagerScriptingInterface(ScriptManager *parent): QObject(parent), _manager(parent) { |
| 20 | + | |
| 21 | + qRegisterMetaType<ScriptException>(); | |
| 22 | + qRegisterMetaType<ScriptEngineException>(); | |
| 23 | + qRegisterMetaType<ScriptRuntimeException>(); | |
| 24 | + | |
| 25 | + qRegisterMetaType<std::shared_ptr<ScriptException>>(); | |
| 26 | + qRegisterMetaType<std::shared_ptr<ScriptEngineException>>(); | |
| 27 | + qRegisterMetaType<std::shared_ptr<ScriptRuntimeException>>(); | |
| 28 | + | |
| 29 | + | |
| 18 | 30 | connect(_manager, &ScriptManager::scriptLoaded, this, &ScriptManagerScriptingInterface::scriptLoaded); |
| 19 | 31 | connect(_manager, &ScriptManager::errorLoadingScript, this, &ScriptManagerScriptingInterface::errorLoadingScript); |
| 20 | 32 | connect(_manager, &ScriptManager::update, this, &ScriptManagerScriptingInterface::update); |