bind setAssociatedApplication

This commit is contained in:
Marco Martin 2011-03-27 16:59:08 +02:00
parent 11b6e78640
commit 264aa5e8fb
2 changed files with 13 additions and 0 deletions

View File

@ -373,6 +373,15 @@ Plasma::Extender *AppletInterface::extender() const
return m_appletScriptEngine->extender();
}
void AppletInterface::setAssociatedApplication(const QString &string)
{
applet()->setAssociatedApplication(string);
}
QString AppletInterface::associatedApplication() const
{
return applet()->associatedApplication();
}
void AppletInterface::gc()
{

View File

@ -77,6 +77,7 @@ class AppletInterface : public QObject
Q_PROPERTY(int apiVersion READ apiVersion CONSTANT)
Q_PROPERTY(QRectF rect READ rect)
Q_PROPERTY(QSizeF size READ size)
Q_PROPERTY(QString associatedApplication WRITE setAssociatedApplication READ associatedApplication)
public:
AppletInterface(AbstractJsAppletScript *parent);
@ -285,6 +286,9 @@ enum IntervalAlignment {
static AppletInterface *extract(QScriptEngine *engine);
inline Plasma::Applet *applet() const { return m_appletScriptEngine->applet(); }
void setAssociatedApplication(const QString &string);
QString associatedApplication() const;
Q_SIGNALS:
void releaseVisualFocus();
void configNeedsSaving();