isUserConfiguring

svn path=/trunk/KDE/kdebase/runtime/; revision=1083610
This commit is contained in:
Aaron J. Seigo 2010-02-01 16:19:32 +00:00
parent 0df331ac6c
commit e3e4a580d9
2 changed files with 7 additions and 0 deletions

View File

@ -306,6 +306,11 @@ bool AppletInterface::immutable() const
return applet()->immutability() != Plasma::Mutable; return applet()->immutability() != Plasma::Mutable;
} }
bool AppletInterface::userConfiguring() const
{
return applet()->isUserConfiguring();
}
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] == 'javascript' and 'Applet' in [X-Plasma-ComponentTypes]");

View File

@ -68,6 +68,7 @@ class AppletInterface : public QObject
Q_PROPERTY(BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints) Q_PROPERTY(BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints)
Q_PROPERTY(QGraphicsLayout *layout WRITE setLayout READ layout) Q_PROPERTY(QGraphicsLayout *layout WRITE setLayout READ layout)
Q_PROPERTY(bool immutable READ immutable) Q_PROPERTY(bool immutable READ immutable)
Q_PROPERTY(bool userConfiguring READ userConfiguring) // @since 4.5
Q_PROPERTY(int apiVersion READ apiVersion) Q_PROPERTY(int apiVersion READ apiVersion)
Q_PROPERTY(QObject *sender READ sender) Q_PROPERTY(QObject *sender READ sender)
@ -253,6 +254,7 @@ enum AnimationDirection {
QGraphicsLayout *layout() const; QGraphicsLayout *layout() const;
void setLayout(QGraphicsLayout *); void setLayout(QGraphicsLayout *);
bool immutable() const; bool immutable() const;
bool userConfiguring() const;
int apiVersion() const; int apiVersion() const;
inline Plasma::Applet *applet() const { return m_appletScriptEngine->applet(); } inline Plasma::Applet *applet() const { return m_appletScriptEngine->applet(); }