Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 3 files). Show all
Unified · Split
| @@ -32,6 +32,11 @@ ScriptsModel& getScriptsModel() { · 31 unmodified lines | |||
| 32 | return scriptsModel; | 32 | return scriptsModel; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | void ScriptEngines::onPrintedMessage(const QString& message) { | ||
| 36 | auto scriptEngine = qobject_cast<ScriptEngine*>(sender()); | ||
| 37 | emit printedMessage(message, scriptEngine->getFilename()); | ||
| 38 | } | ||
| 39 | |||
| 35 | ScriptEngines::ScriptEngines() | 40 | ScriptEngines::ScriptEngines() |
| 36 | : _scriptsLocationHandle("scriptsLocation", DESKTOP_LOCATION) | 41 | : _scriptsLocationHandle("scriptsLocation", DESKTOP_LOCATION) |
| 37 | { | 42 | { |