[Panel-devel] Blurry Panel Icons

Jason Stubbs jasonbstubbs at gmail.com
Wed Jan 2 07:47:16 CET 2008


On Tuesday 01 January 2008 17:45:27 JST, Aaron J. Seigo wrote:
> On Saturday 29 December 2007, Jason Stubbs wrote:
> > The attached patch corrects all the calculations, but the white line
> > still appears. Further investigation has revealed the the white line
> > doesn't appear if the resulting panel height is an even number. The
> > border svg height is 23, so setting height to 47, 63, 21 or any other odd
> > number works fine, but heights of 48, 64 and such result in a single
> > white line. Very odd. :/
>
> hmm.. sounds like the center area isn't getting the correct height then ...
> or isn't getting painted all the way to the edge (and if so, i wonder if
> this another occurance of the coordinates-are-between-pixels curiosity in
> Qt painting)

I tracked down the cause of this but forgot to respond so. There's a rounding 
error in QGraphicsView when the scene size is equal to or smaller than the 
view size, the scene position is negative and the scene alignment is 
AlignCenter. Setting the scene alignment to be TopLeft (the initGraphicsView 
function in Plasma::View) worked around it in Plasma, but a bug should 
probably be filed upstream.

-- 
Jason Stubbs


More information about the Panel-devel mailing list