[Panel-devel] [PATCH] Plasma Layouts

Aaron J. Seigo aseigo at kde.org
Mon May 21 22:20:47 CEST 2007


On Monday 21 May 2007, Richard Moore wrote:
> On 5/21/07, Aaron J. Seigo <aseigo at kde.org> wrote:
> > On Monday 21 May 2007, Matias Valdenegro T. wrote:
> > > Hi:
> > >
> > > Attached are :
> > > - Patch against kdebase/workspace/plasma/lib
> >
> > i really wish we could avoid a Widget superclass, since that makes it
> > difficult / impossible to add Qt-provided QGraphicsViewItems to the
> > layouts.
> >
> > the problem i can see is that QGraphicsItem doesn't provide any size
> > hinting information, which is understandable since it's a canvas
> > implementation first and formost.
>
> Why not use dynamic properties? That way you can annotate existing
> objects as needed.

thanks rich, that's a great idea =) so our items can subclass Widget and we 
can 'just' use setProperty on the Qt ones to accomplish the same thing.. as 
long as the QLayout grabs the value via qproperties, it'll work. obviously 
not as fast, but i doubt it'll have significant impact... and, of course, 
this will speed up in 4.1 when this stuff moves lower into qt itself.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070521/abb92879/attachment.pgp 


More information about the Panel-devel mailing list