[Panel-devel] plasma playground ping

Aaron J. Seigo aseigo at kde.org
Sun Dec 2 19:02:22 CET 2007


On Sunday 02 December 2007, Sven Burmeister wrote:
> On Sonntag, 2. Dezember 2007, Aaron J. Seigo wrote:
> > On Saturday 01 December 2007, Sven Burmeister wrote:
> > > On Samstag, 1. Dezember 2007, Aaron J. Seigo wrote:
> > > > quick ping: are there any things in playground that are ready to move
> > > > to extragear? e.g. runners, engines, applets, etc?
> > >
> > > I re-worked the fuzzy-clock locally to adjust to a given size -- yet I
> > > somehow cannot get the given size. I tried size(), contentSize() and
> > > sizeHint() but they stay at the same values when resizing the applet
> > > via the handles. What I need is the contentSize of the resized applet.
> >
> > are you checking the value of contentSize() when in constraintsUpdated?
>
> Yes. The way I understood it - and hence build the plasmoid - is that
> handles resizing the applet sets a new size, then calls constraintsUpdated
> and I take that new size and calculate my content according to it.

i'm going to take guess at this one from what's in svn: in constraintsUpdated 
you always call calcaulate[Time|Date]String which adjusts your size hint and 
then you call updateGeometry which in desktop containments using FreeLayout 
simply respects your size hint. voila, size change overwritten.

you should wrap the formfactor checking in a if (constraints & 
Plasma::FormFactorConstraint) to make sure you are only doing that when the 
form factor changes.

-- 
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: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071202/bdd03972/attachment.pgp 


More information about the Panel-devel mailing list