applet browser window: the widgets

Aaron J. Seigo aseigo at kde.org
Mon Jun 29 01:07:47 CEST 2009


hi ...

so, next topic: the actually icon that shows an applet. there currently is a 
QGraphicsWidget that represents an applet. this is great :)

however, the code has fallen into the "make it all generic with a hierarchy of 
classes!" trap :) there's StandardCustomWidget. i can see the point of that. 
however, we already have Plasma::SvgWidget that does exactly what that is. 

recommendation: drop StandardCustomWidget. use Plasma::SvgWidget.

there is ManageWidgetsPushButton, which subclass StandardCustomWidget. just 
use Plasma::PushButton instead. it can do everything you need and will fit 
into the rest of plasma much better.

AppletsListSearch should just be a Plasma::LineEdit.

FilteringList should probably be a Plasma::TreeView. it takes a model, too :)

this leaves us with:

AppletsList (no Widget at the end of that name? :)
AppletInfoWidget
AppletIconWidget

that should be the minimal set we need. thoughts?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090628/e5a5cefd/attachment.sig 


More information about the Plasma-devel mailing list