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

List:       kde-panel-devel
Subject:    Re: toolbox (and applethandle?) architecture rewamp
From:       Giulio Camuffo <giuliocamuffo () gmail ! com>
Date:       2010-08-09 8:57:04
Message-ID: 201008091057.05018.giuliocamuffo () gmail ! com
[Download RAW message or body]

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?
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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