Plasmoid activation signal

Aaron J. Seigo aseigo at kde.org
Tue Oct 20 18:34:53 CEST 2009


On October 20, 2009, Matteo Agostinelli wrote:
> 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.

did you implement focusInEvent on your applet, or on the graphicsWidget()? in 
a popup applet, all the "fun" actually happens in the graphicsWidget(), not 
the Applet itself.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20091020/fa44ec7b/attachment.sig 


More information about the Plasma-devel mailing list