[Panel-devel] Plasma::Widget subclassing and QGVItem's

Aaron J. Seigo aseigo at kde.org
Wed May 23 18:25:00 CEST 2007


On Wednesday 23 May 2007, Matias Valdenegro T. wrote:
> El Mar 22 May 2007, Aaron J. Seigo escribió:
> > On Tuesday 22 May 2007, Matias Valdenegro T. wrote:
> > > - Create classes that inherit LayoutItem and the desired Qt Graphics
> > > Item to implement boundingRect() virtually.
> > > - Use dynamic properties on LayoutItems, but still you need a way to
> > > notify the LayoutItem that it's geometry has changed and it needs to be
> > > redrawn.
> > >
> > > I'm still on the idea that all Plasma Widgets inherit Plasma::Widget,
> > > but for Qt's ones we should implement a workaround or something.
> >
> > well, we could wrap Qt's ones. what this would mean probably is:
> >
> > making Widget not subclass QGraphicsItem or that matter
> > DataVisualization. it would then become, essentially, an interface class
> > for "extra" plasma features. so:
> >
> > namespace Plasma
> > {
> > class Label : public QGraphicsItem, public Widget
> > {
> >      // implementation of Widget API
> > };
> > }
> >
> > how does that sound?
>
> Sounds nice, but widget should at least inherit LayoutItem to be
> layout-manageable.

well, yes. i thought was implied =)

-- 
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/20070523/585e2b8b/attachment.pgp 


More information about the Panel-devel mailing list