[LyX/master] Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
Richard Kimberly Heck
rikiheck at lyx.org
Sun Oct 25 02:58:39 UTC 2020
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.
Riki
More information about the lyx-devel
mailing list