toolbox (and applethandle?) architecture rewamp
Giulio Camuffo
giuliocamuffo at gmail.com
Mon Aug 9 10:57:04 CEST 2010
In data domenica 01 agosto 2010 23:11:36, Aaron J. Seigo ha scritto:
> On August 1, 2010, Giulio Camuffo wrote:
> > Interesting approach, i like it.
> > There's just a thing i'm not sure i understood well. You said to check if
> > there is the controlElement property. Do you mean having a property for
> > each control element the widget accepts?
>
> no, something like:
>
> Q_PROPERTY(QList<Plasma::ControlElement>
> controlElements READ controlElements)
>
> the elements themselves would know how to deal with the input events and
> either modify the widget or relay the information on to the widget.
ok, back home for 2-3 days, there are still two things to deal with:
1) now when the AppletHandle moves an Applet it emits the applet's signal
appletTransformedByUser. It can emit it because it is a friend of Applet, but
now we need to find an other way to allow every subclass of AbstractHandle to
emit it.
2) What should the ControlElement class be? A QGraphicsObject or maybe a simple
QObject with some mousePress() method called by the handle when it wants to pass
the input to the right element?
More information about the Plasma-devel
mailing list