Non-pointed rectangle corners

Daniel xracoonx at gmx.de
Fri Aug 7 06:22:08 UTC 2020


On 2020-08-07 00:57, Jean-Marc Lasgouttes wrote:
> Le 6 août 2020 12:09:13 GMT+02:00, Daniel <xracoonx at gmx.de> a écrit :
>> On 2020-08-06 11:22, Jean-Marc Lasgouttes wrote:
>>> Le 6 août 2020 09:46:36 GMT+02:00, Daniel <xracoonx at gmx.de> a écrit :
>>>> I noticed that the corners of rectangles in LyX are drawn bevel
>> instead
>>>>
>>>> of a pointy since they are drawn with the Qt default, see
>>>>
>>>> https://doc.qt.io/qt-5/qpen.html#QPen-3
>>>> https://doc.qt.io/qt-5/qt.html#PenJoinStyle-enum
>>>>
>>>> I don't think the bevel corners are intentional in LyX and the
>> attached
>>>>
>>>> patch is intended to fix this. One effect is that the corners of
>> insets
>>>>
>>>> are pointy, see before and after pictures attached.
>>>>
>>>> You might have wondered what the strange gap in the label is. This
>> is
>>>> fixed at https://www.lyx.org/trac/ticket/10323.
>>>
>>> Looks like a good idea. I think though that you could just enforce it
>> and not expose the parameters to our painter.
>>
>> Attached. Is the idea to better not introduce any parameters
>> (complexity) before they become really useful?
> 
> Yes, de do not anticipate that we will need several kind of rectangles.
> 
> The patch looks good if the parameters exist in at 4.8.

They do: https://doc.qt.io/archives/qt-4.8/qt.html#PenJoinStyle-enum.


-- 
Daniel



More information about the lyx-devel mailing list