[LyX/master] Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Oct 30 12:13:34 UTC 2020


Le 25/10/2020 à 03:58, Richard Kimberly Heck a écrit :
> On 10/24/20 2:17 PM, Jean-Marc Lasgouttes wrote:
>> Le 24/10/2020 à 19:38, Jean-Marc Lasgouttes a écrit :
>>> commit 21422dd6527754d8b7876a6e11b686cd726321ed
>>> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
>>> Date:   Sat Oct 24 19:29:34 2020 +0200
>>>
>>>       Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
>>>            The method horizontalAdvance() replaces width() starting
>>> with Qt 5.11.
>>>       To handle this, all direct calls to QFontMetrics::width() are
>>> replaced
>>>       by calls to GuiFontMetrics::width(), and the code for
>>>       GuiFontMetrics::width(QChar) uses horizontalAdvance on newer Qt
>>>       versions.
>>
>> If this turns out to work well, it will be candidate for branch.
> 
> Keep me posted.

This can wait until after 2.3.6.

JMarc


More information about the lyx-devel mailing list