bind setAssociatedApplication
This commit is contained in:
parent
11b6e78640
commit
264aa5e8fb
@ -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()
|
||||
{
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user