[Panel-devel] Plasma::Widget subclassing and QGVItem's
Aaron J. Seigo
aseigo at kde.org
Wed May 23 03:58:36 CEST 2007
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?
--
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/20070522/e4476751/attachment.pgp
More information about the Panel-devel
mailing list