New profile, line thickness of pp-graphs and ruler in Qt5

Tomaz Canabrava tcanabrava at kde.org
Tue Mar 18 08:29:33 PDT 2014


People, stawp. :)

QPen p;
p.setCosmetic( true ); <---- THIS. it will make the pen not scale on zoom.


On Tue, Mar 18, 2014 at 12:27 PM, Lubomir I. Ivanov <neolit123 at gmail.com>wrote:

> On 18 March 2014 17:17, Dirk Hohndel <dirk at hohndel.org> wrote:
> > On Tue, 2014-03-18 at 17:05 +0200, Lubomir I. Ivanov wrote:
> >> On 18 March 2014 16:40, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> >> > On 18 March 2014 16:14, Anton Lundin <glance at acc.umu.se> wrote:
> >> >> I just played around with Qt5 a bit and noticed that the pp-graph
> lines
> >> >> are way to thick and the ruler line too.
> >> >>
> >> >
> >> > see attached patch. is that a fix for the ruler line?
> >> >
> >>
> >> updated with the pp-graph lines.
> >> (had to figure out what the heck is 'pp' in the first place...)
> >>
> >> my rough guess is that the base classes for all those lines (polygons)
> >> in Qt5 uses different default QPen width values or there is some sort
> >> of scaling (which is worse).
> >> if this patch doesn't solve it, i have no idea; all looks good on Qt4.
> >
> > So does this change the visual result on Qt4?
>
> there is one problem, the zoomed in lines of both the ruler and the pp
> look massive.
> anton, could you test this change again and ack for dirk to apply.
>
> 0.0 should be hairline thickness for Qt5 as well...
> if not something is broken.
>
> lubomir
> --
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140318/d93292b9/attachment.html>


More information about the subsurface mailing list