KDE/kdebase/workspace/plasma/applets/battery

Aaron J. Seigo aseigo at kde.org
Thu Sep 18 07:39:23 CEST 2008


On Wednesday 17 September 2008, Sebastian Kügler wrote:
> On Thursday 18 September 2008 04:34:37 Aaron J. Seigo wrote:
> >   On Wednesday 17 September 2008, Sebastian Kügler wrote:
> > > I'm still not getting the popup to pop up, out of ideas for now.
> > > Maybe someone else can have a look, I'm kind of stuck.
> >
> > you haven't reimplemented widget() or graphicsWidget(); but don't worry,
> > i'm making PopupApplet return extender() instead of 0 in the default
> > implementation ... so if you just create an extender and don't
> > reimplement graphicsWidget(), you get if for free now.
>
> Hm, I've done this, now removed it though, after your changes (thanks,
> btw). That simplifies things a bit, but still the extender gets drawn on
> top of my applet (see screenshot). There's no popup (though I've checked
> with popupapplet, togglePopup() gets actually called.

you need to call PopupApplet::constraintsEvent in your constraintsEvent .. 
maybe we should handle that differently .... like .... having a 
PopupAppletPrivate::constraintsEvent and have Applet check if it is a 
PopupApplet and if so call that constraintsEvent ...

-- 
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 Trolltech

-------------- 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/20080917/10388729/attachment-0001.sig 


More information about the Plasma-devel mailing list