[PATCH] boxlayout and expandingDirections

Marco Martin notmart at gmail.com
Sun Jan 27 22:39:20 CET 2008


Hi,
at the moment in the boxlayout expandingDirections() if horizontal if the 
layout is horizontal and vertical if the layout is vertical and well, 
flawless logic i would say :D
however, i think sometimes could be useful if the expanding directions are 
both, for instance if there is an horizontal layout within a vertical layout 
and i want the things in the horizontal layout to expand also vertically.
i'm thinking about for instance the cpu temperature plasmoid, where there are 
multiple rows of two widgets in an horizontal layout (a meter and a plotter) 
but if i expand the plasmoid the widgets are stretched only horizontally and 
it's uuuugly :)
this patch adds the function setExpandingBoth(bool) to boxlayout and it solves 
the problem
how does it look?

Cheers,
Marco Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expandingboth.diff
Type: text/x-diff
Size: 3009 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080127/7910572a/attachment.bin 


More information about the Panel-devel mailing list