Constrained sizeHints for Plasma::IconWidget

Marco Martin notmart at gmail.com
Fri Oct 8 18:32:16 CEST 2010


On Friday 08 October 2010, Ingomar Wesp wrote:
> Aaron J. Seigo wrote:
> > On Thursday, October 7, 2010, Ingomar Wesp wrote:
> >> reason for the current behavior or if there are plans to implement
> >> sizeHint() properly. If not, I could give it a try, but since I would
> >> have to dig myself into this class first, I can't guarantee that I can
> >> come up with something useful.
> > 
> > a proper sizeHint implementation would probably be good :)
> 
> I hope that I prepare a rough patch or a lot of whining (or both) within
> the weekend.

great!
> I'm guessing the constrained sizeHint for preferredSize is the only thing
> that needs to be implemented, as minimum and maximum size are unaffected
> by constraints on either dimensions?

to be really correct as far i know, all 3 hints needs this.

also, it should be possible to have the constrained size with one of the two 
dimensios as 0, that means
do what you want in the 0 dimension, the other one is constrained

Cheers,
Marco Martin


More information about the Plasma-devel mailing list