Did something happen to layouts?

Aaron J. Seigo aseigo at kde.org
Wed Feb 13 11:03:22 CET 2008


On Wednesday 13 February 2008, Petri Damstén wrote:
> On Wednesday 13 February 2008 00:49:52 Aaron J. Seigo wrote:
> > > > does http://matt.rogers.name/r/112/ fix it?
> > >
> > > Yes, it seems to fix it :-)
> >
> > huzzah. i'll be committing this on monday. (BIC, and all that)
>
> One more problem... I have following code in News::init():
>     m_layout = new Plasma::VBoxLayout(this);
>     kDebug() << "Layout size: " << m_layout->size();
>
> And I get:
>     plasma(30079) News::init: Layout size:  QSizeF(-1,-1)

that's because the parent layout hasn't invalidated and relayed itself out 
yet, or the parent widget (the applet) hasn't told it to do the same.

i've noticed this brief -1,-1 as well. i haven't looked into fixing yet; it's 
probably just requiring a more immediate relayout, though it may be tricky to 
do so before the ctor is complete.

-- 
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: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080213/9ffe4dce/attachment.pgp 


More information about the Panel-devel mailing list