[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: [Panel-devel] Plasma::Widget subclassing and QGVItem's
From:       "Matias Valdenegro T." <mvaldenegro () informatica ! utem ! cl>
Date:       2007-05-23 13:46:25
Message-ID: 200705230946.25757.mvaldenegro () informatica ! utem ! cl
[Download RAW message or body]

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.
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic