[Panel-devel] Blurry Panel Icons
Aaron J. Seigo
aseigo at kde.org
Wed Jan 2 08:15:05 CET 2008
On Tuesday 01 January 2008, Jason Stubbs wrote:
> 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.
ah, so we just need to set the scene alignment to be TopLeft in the panel
then? if so, do you want to do it and get the glory or should i do it? (i'm
off to bed right now, so it wouldn't be until morning; well a little later
even as i have to pick my son up from the aiport tomorrow)
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080102/fe2eb9a9/attachment.pgp
More information about the Panel-devel
mailing list