[Panel-devel] plasma playground ping

Sven Burmeister sven.burmeister at gmx.net
Sun Dec 2 19:17:25 CET 2007


On Sonntag, 2. Dezember 2007, Aaron J. Seigo wrote:
> 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.

But what I do now is first: set m_contentSizeHint = contentSize(), which 
should give me the new size (which does not work), then calculate the content 
to fit into m_contentSizeHint and if that is not possible, adjust it and the 
minimumContentSize. After that I call updateGeometry().

Sven


More information about the Panel-devel mailing list