pass on the activate() signal
svn path=/trunk/KDE/kdebase/runtime/; revision=1100979
This commit is contained in:
parent
b7d9906dda
commit
791daecc22
@ -183,6 +183,12 @@ void SimpleJavaScriptApplet::extenderItemRestored(Plasma::ExtenderItem* item)
|
|||||||
callFunction("initExtenderItem", args);
|
callFunction("initExtenderItem", args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SimpleJavaScriptApplet::activate()
|
||||||
|
{
|
||||||
|
QScriptValueList args;
|
||||||
|
callFunction("activate", args);
|
||||||
|
}
|
||||||
|
|
||||||
void SimpleJavaScriptApplet::popupEvent(bool popped)
|
void SimpleJavaScriptApplet::popupEvent(bool popped)
|
||||||
{
|
{
|
||||||
QScriptValueList args;
|
QScriptValueList args;
|
||||||
@ -302,6 +308,8 @@ bool SimpleJavaScriptApplet::init()
|
|||||||
{
|
{
|
||||||
connect(applet(), SIGNAL(extenderItemRestored(Plasma::ExtenderItem*)),
|
connect(applet(), SIGNAL(extenderItemRestored(Plasma::ExtenderItem*)),
|
||||||
this, SLOT(extenderItemRestored(Plasma::ExtenderItem*)));
|
this, SLOT(extenderItemRestored(Plasma::ExtenderItem*)));
|
||||||
|
connect(applet(), SIGNAL(activate()),
|
||||||
|
this, SLOT(activate()));
|
||||||
setupObjects();
|
setupObjects();
|
||||||
|
|
||||||
AppletAuthorization auth(this);
|
AppletAuthorization auth(this);
|
||||||
|
@ -65,6 +65,7 @@ public Q_SLOTS:
|
|||||||
void collectGarbage();
|
void collectGarbage();
|
||||||
void extenderItemRestored(Plasma::ExtenderItem* item);
|
void extenderItemRestored(Plasma::ExtenderItem* item);
|
||||||
void popupEvent(bool popped);
|
void popupEvent(bool popped);
|
||||||
|
void activate();
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void engineReportsError(ScriptEnv *engine, bool fatal);
|
void engineReportsError(ScriptEnv *engine, bool fatal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user