[Panel-devel] note on applets and size

Anne-Marie Mahfouf annemarie.mahfouf at free.fr
Wed Nov 28 14:40:01 CET 2007


Thanks for those explanations! 
I was wondering about the size from config so that clears it.

Anne-Marie

On Tuesday 27 November 2007 05:59:43 pm Aaron J. Seigo wrote:
> 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





More information about the Panel-devel mailing list