Plasmoid activation signal

Matteo Agostinelli agostinelli at gmail.com
Tue Oct 20 12:48:55 CEST 2009


On Monday 19 October 2009 21:23:13 Aaron J. Seigo wrote:
> hi Matteo ..
> 
> please keep plasma issues on this list; cross-posting to kde-devel will
>  just make it more confusing to follow the resulting thread(s) :)
> 
> On October 19, 2009, Matteo Agostinelli wrote:
> > So my question is if there already is a signal that is emitted when
> > either of the previously stated action is triggered. Or should I
> > override some protected method (in that case, please give me a hint).
> > A possible candidate seems this signal: void newStatus
> > (Plasma::ItemStatus status)
> > but this has been introduced in 4.4 and I would like to make this work
> > also in 4.3 if possible. Any suggestions?
> 
> focusInEvent?
> 
Yep, this partially solved the problem. Partially because if the plasmoid is 
activated by the keyboard shortcut it seems that this function is not called. 
I had to add a connect to the "activate()" signal of the plasmoid to solve 
this problem. Now everything is working fine.

Thanks,
Matteo


More information about the Plasma-devel mailing list