[Bug 158762] partial fix for wish

Marco Martin notmart at gmail.com
Tue Dec 9 10:16:47 CET 2008


On Monday 08 December 2008, Marcos Dione wrote:
>     I've been annoyed with this bug for some time now, so I wrote a
> first (and second) patch. the second one puts the date and/or timezone
> at the right od time. the only problem is that it doesn't calculate the
> size it should take, so the time shows a little smaller that it should.
> the problem is in updateSize(). I'm not sure how to calculate properly
> the size. any hints?
>
>     you can see a sshot of the results here:
>
> http://grulicueva.homelinux.net/~mdione/gallerpy/index.py/pictures/sshots/d
>clock-with-dates-timezones-horizontal-ffactor.png/_full_

the needed size is calculated with font pixelmentric of time with its font and 
date with its font
to resize the thing you need to set explicitly a minimum size (in a layout 
resize(), updateSize() etc doesn't work) that is a bit dangerous but anyways 
th digital clock does this already

Cheers,
Marco MArtin



More information about the Plasma-devel mailing list