]> git.lyx.org Git - features.git/commit
Fix Qt deprecation warn for setConfirmOverwrite()
authorScott Kostyshak <skostysh@lyx.org>
Fri, 6 Mar 2020 14:18:59 +0000 (09:18 -0500)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:53 +0000 (15:48 +0200)
commit2360a935ff8c3669b600ebf5bb816e5dab977094
treefe04faa88f1f1dff2626cbcf00960bc17f4d77d1
parent35b26d84c41130c653bf42c566b16348b4c14f45
Fix Qt deprecation warn for setConfirmOverwrite()

Fix the following warning:

  error: ‘void QFileDialog::setConfirmOverwrite(bool)’ is deprecated: Use setOption(DontConfirmOverwrite, !enabled) instead [-Werror=deprecated-declarations]

Note in the change that "false" changes to "true" because the option
is *Dont*ConfirmOverwrite.

QFileDialog::setConfirmOverwrite() is obsolete at least since 4.8
and QFileDialog::setOption() is available since 4.5 [1].

[1] https://doc.qt.io/archives/qt-4.8/qfiledialog-obsolete.html
[2] https://doc.qt.io/qt-5/qfiledialog.html#setOption
src/frontends/qt/FileDialog.cpp