]> git.lyx.org Git - features.git/commit
Fix Qt dep warn and remove XLFD font workaround
authorScott Kostyshak <skostysh@lyx.org>
Thu, 19 Mar 2020 16:20:16 +0000 (12:20 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 19 Mar 2020 16:30:27 +0000 (12:30 -0400)
commitd4ff3a295959d27e21fb914d78505cebd96732ad
treeb4fac888f7ad895ea5a6040d1dac0299c0c53da5
parent8583410617c756e072ee997f918395d6f29b8246
Fix Qt dep warn and remove XLFD font workaround

This commit fixes a few warnings from Qt 5.14 regarding
QFont::setRawName() and QFont::rawName() like the following one:

  error: ‘void QFont::setRawName(const QString&)’ is deprecated [-Werror=deprecated-declarations]

These methods were deprecated in Qt 5.3. [1]

This commit removes code from 2002 (539ce478) that worked around a
problem in Qt's handling of XLFD fonts that no longer seems relevant
since XLFD is no longer supported in Qt 5 [2]. Even if the problem
were relevant, setRawName() would not fix anything since it is now
an empty method. [3]

I tested that compilation with Qt 4.8.7 works without error.

[1] https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.3.0/?h=v5.14.0
[2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=3a8d7b0b9a4db91415b7bda2582a59a76b3754dc
[3] https://codereview.qt-project.org/c/qt/qtbase/+/100292/
src/frontends/qt/GuiFontLoader.cpp