Thoughts on applet layouts

Aaron J. Seigo aseigo at kde.org
Thu Mar 13 16:16:35 CET 2008


On Thursday 13 March 2008, Alex Merry wrote:
> On Thursday 13 March 2008 13:17:21 Christopher Blauvelt wrote:
> > > virtual Containment::layout(QList<Applet*>);
> > >
> > > Containment::layout(QList<Applet*> applets)
> > > {
> >
> > if (FormFactor == Planar) {
> > layout applets in a grid like icons if desired.
> > }
>
> I'm not sure that belongs in the default containment implementation.  I
> said i t should be virtual so that desktop containments, for example, can
> override it to provide this functionality.

hm... what about a:

	protected:
		virtual void createLayout();

method with a default implementation that does what we do now. override that 
to set a layout manger, or if you prefer to just do it manually.

i'd really like to avoid encouraging manual relayouting in the containments 
themselves (people will do it even though they don't have to) and using 
layout managers really is probably the nicest / easiest way to do this for 
most situations.

-- 
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/20080313/355a287b/attachment.pgp 


More information about the Panel-devel mailing list