From 7a4560a677f5ebbbe61c7f7e0510320cc25ed25d Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sat, 4 Sep 2010 08:12:04 +0000 Subject: [PATCH] Need to declare it (make it compile) svn path=/trunk/KDE/kdebase/runtime/; revision=1171528 --- scriptengines/javascript/common/scriptenv.cpp | 2 +- scriptengines/javascript/plasmoid/appletinterface.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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),