Fix obsoleted Qt values

All new values exist in Qt 4.8.7.
This commit is contained in:
Yuriy Skalko 2020-10-23 13:40:41 +03:00
parent 1b508fff03
commit 4ece87c324
2 changed files with 3 additions and 2 deletions

View File

@ -188,7 +188,8 @@ FileDialog::Result FileDialog::opendir(QString const & path,
LyXFileDialog dlg(title_, path, QStringList(qt_("Directories")), LyXFileDialog dlg(title_, path, QStringList(qt_("Directories")),
private_->b1, private_->b2); private_->b1, private_->b2);
dlg.setFileMode(QFileDialog::DirectoryOnly); dlg.setFileMode(QFileDialog::Directory);
dlg.setOption(QFileDialog::ShowDirsOnly, true);
if (!suggested.isEmpty()) if (!suggested.isEmpty())
dlg.selectFile(suggested); dlg.selectFile(suggested);

View File

@ -239,7 +239,7 @@ void setValid(QWidget * widget, bool valid)
widget->setPalette(QPalette()); widget->setPalette(QPalette());
} else { } else {
QPalette pal = widget->palette(); QPalette pal = widget->palette();
pal.setColor(QPalette::Active, QPalette::Foreground, QColor(255, 0, 0)); pal.setColor(QPalette::Active, QPalette::WindowText, QColor(255, 0, 0));
widget->setPalette(pal); widget->setPalette(pal);
} }
} }