[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    RE: QPen
From:       Korinek Pavol <pavol.korinek () ixonos ! com>
Date:       2010-03-22 15:47:14
Message-ID: C495228385CC1D409A54846080C9CBA56811EECD7E () jklmail01 ! ixonos ! local
[Download RAW message or body]

There's setWidthF(zoom * borderData.width) used in Kword. I have used setWidthF(1.0f) and setWidthF(0.5f) instead. It works well only with 1.0f value. I have check qpen.cpp also, but I can't see some reason there.

Palo

-----Original Message-----
From: Jos van den Oever [mailto:Jos.van.den.Oever@kogmbh.com] 
Sent: Monday, March 22, 2010 4:42 PM
To: For developer's discussion about KOffice
Subject: Re: QPen

On Monday 22 March 2010 15:56:10 Korinek Pavol wrote:
> Hi,
> 
> yes that's the problem. In documentation is written that width zero (0) is
> cosmetic pen. Why it's used for (0, 1) without 0 ? In MS word there are
> used also used values between 0 and 1. 1/2 for example. Than I can't fix
> this bug completely. Interesting is: When I use:
>         QVector<qreal> dashes;
>         qreal space = 4;
>         qreal dot = 4;
>         qreal dash = 8;
>         dashes << dot << space << dash << space;
>         pen.setDashPattern(dashes);
> instead of
> DotDash style,
> than it's painted also with 1/2 width, but of don't now reason why, right
> side of border isn't. I hoped that I can replace it with it, but actually
> no.

Did you set the pen with with setWidthF(0.5) or with setWidth(0.5)? Only the 
version with 'F' might work.

Cheers,
Jos

-- 
Jos van den Oever, software architect
+49 391 25 19 15 53
http://kogmbh.com/legal/
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic