diff --git a/scriptengines/javascript/dataengine/javascriptdataengine.cpp b/scriptengines/javascript/dataengine/javascriptdataengine.cpp index e4743331e..fe3deec4f 100644 --- a/scriptengines/javascript/dataengine/javascriptdataengine.cpp +++ b/scriptengines/javascript/dataengine/javascriptdataengine.cpp @@ -228,7 +228,7 @@ QScriptValue JavaScriptDataEngine::serviceCtor(QScriptContext *context, QScriptE JavaScriptService *service = new JavaScriptService(serviceName, iFace); if (service->wasFound()) { - QScriptValue v = engine->newQObject(service, QScriptEngine::QtOwnership); + QScriptValue v = engine->newQObject(service, QScriptEngine::QtOwnership, QScriptEngine::ExcludeSuperClassContents); service->setScriptValue(v); return v; } diff --git a/scriptengines/javascript/dataengine/javascriptservice.h b/scriptengines/javascript/dataengine/javascriptservice.h index 04f73fb62..1aba29aef 100644 --- a/scriptengines/javascript/dataengine/javascriptservice.h +++ b/scriptengines/javascript/dataengine/javascriptservice.h @@ -35,6 +35,9 @@ class JavaScriptDataEngine; class JavaScriptService : public Plasma::Service { Q_OBJECT + Q_PROPERTY(QString destination READ destination WRITE setDestination) + Q_PROPERTY(QStringList operationNames READ operationNames) + Q_PROPERTY(QString name READ name) public: JavaScriptService(const QString &serviceName, JavaScriptDataEngine *engine);