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

List:       kde-panel-devel
Subject:    [Panel-devel] note on applets and size
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2007-11-27 22:59:43
Message-ID: 200711271559.43991.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

[Attachment #5 (application/pgp-signature)]

_______________________________________________
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