[Panel-devel] note on applets and size

Aaron J. Seigo aseigo at kde.org
Tue Nov 27 23:59:43 CET 2007


hi all....

now that we have applet handles handling sizes, remember:

- applets should *not* store or retrieve their own size from config(). 
Plasma::Applet does that for us.

- resize to a reasonable default in the constructor (whatever that means for 
the config)

- only over ride contentSizeHint if there is good reason to (e.g. aspect ratio 
is important, the systemtray, etc)

- if the applet needs to resize at runtime because of changing content, this 
is ok to do. just be careful of the form factor.

- setting a minimum size is a good idea for aplets that need a certain amount 
of room no matter what

-- 
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 Trolltech
-------------- 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/20071127/cba01a0f/attachment.pgp 


More information about the Panel-devel mailing list