diff --git a/scriptengines/javascript/common/scriptenv.cpp b/scriptengines/javascript/common/scriptenv.cpp index 8fd16c681..efb7d86b7 100644 --- a/scriptengines/javascript/common/scriptenv.cpp +++ b/scriptengines/javascript/common/scriptenv.cpp @@ -45,7 +45,7 @@ #include "javascriptaddonpackagestructure.h" Q_DECLARE_METATYPE(ScriptEnv*) - +Q_DECLARE_METATYPE(Plasma::Package) ScriptEnv::ScriptEnv(QObject *parent, QScriptEngine *engine) : QObject(parent), m_allowedUrls(NoUrls), diff --git a/scriptengines/javascript/plasmoid/appletinterface.cpp b/scriptengines/javascript/plasmoid/appletinterface.cpp index 215bc0895..7cfa1a671 100644 --- a/scriptengines/javascript/plasmoid/appletinterface.cpp +++ b/scriptengines/javascript/plasmoid/appletinterface.cpp @@ -35,6 +35,7 @@ #include Q_DECLARE_METATYPE(AppletInterface*) +Q_DECLARE_METATYPE(Plasma::Package) AppletInterface::AppletInterface(SimpleJavaScriptApplet *parent) : QObject(parent),