]> git.lyx.org Git - lyx.git/commit
Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 24 Oct 2020 17:29:34 +0000 (19:29 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 17 Dec 2020 10:32:44 +0000 (11:32 +0100)
commitf4314b6461ad4434c4c9dd294dfe62d1879ea6ea
treeb3c4755a3f0d8fa6f24187b391a122f0289f4b28
parent20c89597909ddf9bfc94d0972ce45b423a5c06bb
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.

(cherry picked from commit 21422dd6527754d8b7876a6e11b686cd726321ed)
src/frontends/qt4/GuiFontExample.cpp
src/frontends/qt4/GuiFontMetrics.cpp
src/frontends/qt4/PanelStack.cpp
status.23x