From 735bc7cf630ea74c4828c2c9238865330664ad75 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 13 Feb 2013 13:50:12 +0100 Subject: [PATCH] fix apiVersion --- scriptengines/qml/plasmoid/appletinterface.cpp | 2 +- scriptengines/qml/plasmoid/appletinterface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scriptengines/qml/plasmoid/appletinterface.cpp b/scriptengines/qml/plasmoid/appletinterface.cpp index 8970ed43f..85976333d 100644 --- a/scriptengines/qml/plasmoid/appletinterface.cpp +++ b/scriptengines/qml/plasmoid/appletinterface.cpp @@ -297,7 +297,7 @@ bool AppletInterface::userConfiguring() const int AppletInterface::apiVersion() const { - const QString constraint("[X-Plasma-API] == 'javascript' and 'Applet' in [X-Plasma-ComponentTypes]"); + const QString constraint("[X-Plasma-API] == 'declarative' and 'Applet' in [X-Plasma-ComponentTypes]"); KService::List offers = KServiceTypeTrader::self()->query("Plasma/ScriptEngine", constraint); if (offers.isEmpty()) { return -1; diff --git a/scriptengines/qml/plasmoid/appletinterface.h b/scriptengines/qml/plasmoid/appletinterface.h index 048fbfce5..8b3b8afd9 100644 --- a/scriptengines/qml/plasmoid/appletinterface.h +++ b/scriptengines/qml/plasmoid/appletinterface.h @@ -41,7 +41,7 @@ class QSizeF; namespace Plasma { class ConfigLoader; -} // namespace Plasa +} // namespace Plasma class AppletInterface : public QQuickItem {