fix apiVersion
This commit is contained in:
parent
6499942284
commit
735bc7cf63
@ -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;
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user