diff --git a/scriptengines/javascript/simplebindings/appletinterface.cpp b/scriptengines/javascript/simplebindings/appletinterface.cpp index 6e64cb803..939f94ffe 100644 --- a/scriptengines/javascript/simplebindings/appletinterface.cpp +++ b/scriptengines/javascript/simplebindings/appletinterface.cpp @@ -306,6 +306,11 @@ bool AppletInterface::immutable() const return applet()->immutability() != Plasma::Mutable; } +bool AppletInterface::userConfiguring() const +{ + return applet()->isUserConfiguring(); +} + int AppletInterface::apiVersion() const { const QString constraint("[X-Plasma-API] == 'javascript' and 'Applet' in [X-Plasma-ComponentTypes]"); diff --git a/scriptengines/javascript/simplebindings/appletinterface.h b/scriptengines/javascript/simplebindings/appletinterface.h index be359ba12..ba0223414 100644 --- a/scriptengines/javascript/simplebindings/appletinterface.h +++ b/scriptengines/javascript/simplebindings/appletinterface.h @@ -68,6 +68,7 @@ class AppletInterface : public QObject Q_PROPERTY(BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints) Q_PROPERTY(QGraphicsLayout *layout WRITE setLayout READ layout) Q_PROPERTY(bool immutable READ immutable) + Q_PROPERTY(bool userConfiguring READ userConfiguring) // @since 4.5 Q_PROPERTY(int apiVersion READ apiVersion) Q_PROPERTY(QObject *sender READ sender) @@ -253,6 +254,7 @@ enum AnimationDirection { QGraphicsLayout *layout() const; void setLayout(QGraphicsLayout *); bool immutable() const; + bool userConfiguring() const; int apiVersion() const; inline Plasma::Applet *applet() const { return m_appletScriptEngine->applet(); }