[Panel-devel] [PATCH] Beginnings of a panel implementation for discussion

Robert Knight robertknight at gmail.com
Fri Aug 31 13:41:26 CEST 2007


Hi,

Percy, thanks for doing this, but the current BoxLayout class still
has some problems, mainly that it does not support the maximumSize()
or minimumSize() constraints of layout items.  expandingDirections()
turned out to be too crude to work in the task bar.

I also think it is better for the main layout algorithm to be
direction-agnostic with the direction-specific code elsewhere.  I had
a look at Qt's layout engine and the code is surprisingly complex, we
can probably get away with something less fancy though.

The attached patch is my work-in-progress rewrite of BoxLayout which
is 'good enough' for the Panel.  In addition to understanding
maximumSize() and minimumSize() it also has RightToLeft and
BottomToTop directions.  It currently ignores spacing() and margin() ,
but I will fix that shortly.

Regards,
Robert.

On 31/08/2007, Aaron J. Seigo <aseigo at kde.org> wrote:
> On Thursday 30 August 2007, Percy Leonhardt wrote:
> > On Thursday 23 August 2007, Matt Broadstone wrote:
> > > If you've got it in you (and the time) please just do this, it will
> > > make drop in replacement of QH/VBoxLayout when widgets on the canvas
> > > works trivial.
> >
> > Finally I had the time to do this. Attached is a patch for the 3 layout
> > classes.
> >
> > Can I commit this?
>
> sure thing.. very cool that you got around to this. less code! yay! =))
>
> --
> 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: rk_box_layout.patch
Type: text/x-diff
Size: 20979 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070831/29d072ab/attachment-0001.bin 


More information about the Panel-devel mailing list