[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:       Andreas Aardal Hanssen <ahanssen () trolltech ! com>
Date:       2007-05-24 6:31:00
Message-ID: 200705240831.00720 () shusaku
[Download RAW message or body]

On Wednesday 23 May 2007 18:25, Aaron J. Seigo wrote:
> > > On Tuesday 22 May 2007, Matias Valdenegro T. wrote:
> > > 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 =)

So, maybe Widget is a Layoutitem? Maybe inheriting from QGraphicsItem and 
LayoutItem will make the item a widget?

class Widget : public QGraphicsItem, public LayoutItem
{
};

Just a thought. The approach we're looking at in Qt is that layouts are items 
as well, so the layout hierarchy is the same as the item hierarchy (as 
opposed to with QWidget, where the hierarchy is separate).

-- 
Andreas Aardal Hanssen / bibr - andreas . hanssen @ trolltech.com
_______________________________________________
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