]> git.lyx.org Git - features.git/commit
Fix a few deprecation warnings in Qt 5.14.1
authorScott Kostyshak <skostysh@lyx.org>
Thu, 5 Mar 2020 16:11:09 +0000 (11:11 -0500)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:53 +0000 (15:48 +0200)
commit9953bf599d2914aa23bbba4d2ecf014a23a6b6da
tree6d3c315f276b74f6504a2ecfc6ffe89273769835
parentc9542be110cbf090d9d5f52f5e3441789635ddb4
Fix a few deprecation warnings in Qt 5.14.1

These changes fix a few instances of the following type of warning:

  error: ‘void QListWidget::setItemSelected(const QListWidgetItem*, bool)’ is deprecated: Use QListWidgetItem::setSelected() instead [-Werror=deprecated-declarations]

as well as similar warnings for setItemHidden() and
setItemExpanded(). These are just warnings now, but it is planned to
remove the methods for Qt 6:

  https://bugreports.qt.io/browse/QTBUG-73048

I tested that LyX can still be built against Qt 4.8.7 with this
commit. Indeed, these methods have been deprecated for a while (it
is just that QT_DEPRECATED_WARNINGS was only turned on by default
starting with 5.13.0). See, e.g.,

  https://doc.qt.io/archives/qt-4.7/qlistwidget-obsolete.html
src/frontends/qt/BulletsModule.cpp
src/frontends/qt/GuiBranches.cpp
src/frontends/qt/GuiIndices.cpp
src/frontends/qt/GuiPrefs.cpp
src/frontends/qt/GuiRef.cpp