fix apiVersion

This commit is contained in:
Marco Martin 2013-02-13 13:50:12 +01:00
parent 6499942284
commit 735bc7cf63
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ bool AppletInterface::userConfiguring() const
int AppletInterface::apiVersion() 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); KService::List offers = KServiceTypeTrader::self()->query("Plasma/ScriptEngine", constraint);
if (offers.isEmpty()) { if (offers.isEmpty()) {
return -1; return -1;

View File

@ -41,7 +41,7 @@ class QSizeF;
namespace Plasma namespace Plasma
{ {
class ConfigLoader; class ConfigLoader;
} // namespace Plasa } // namespace Plasma
class AppletInterface : public QQuickItem class AppletInterface : public QQuickItem
{ {