Did something happen to layouts?

Petri Damstén petri.damsten at dnainternet.net
Wed Feb 13 10:58:32 CET 2008


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)

Should the layout size be set when it's created? News::dataUpdated gets called 
before init returns if dataengine is connected in init and layout should have 
size at that point(?)

When I add news widget from 'Add widgets' dialog layout size gets updated at 
some point, but when plasma starts and opens widgets it doesn't get updated 
so news widget doesn't show anything until I resize the widget.

Petri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080213/c5293066/attachment.pgp 


More information about the Panel-devel mailing list