Remove context help button hint from file dialogs

This removes the useless '?' button that appears in Windows builds
when using non-native dialogs. Complements cf26d53e.
This commit is contained in:
Enrico Forestieri 2016-10-10 01:25:07 +02:00
parent f411040a33
commit ded8b1b3da

View File

@ -51,6 +51,7 @@ LyXFileDialog::LyXFileDialog(QString const & title,
{
setNameFilters(filters);
setWindowTitle(title);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setOption(QFileDialog::DontUseNativeDialog);
QList<QHBoxLayout *> layout = findChildren<QHBoxLayout *>();