mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix obsoleted Qt values
All new values exist in Qt 4.8.7.
This commit is contained in:
parent
1b508fff03
commit
4ece87c324
@ -188,7 +188,8 @@ FileDialog::Result FileDialog::opendir(QString const & path,
|
||||
LyXFileDialog dlg(title_, path, QStringList(qt_("Directories")),
|
||||
private_->b1, private_->b2);
|
||||
|
||||
dlg.setFileMode(QFileDialog::DirectoryOnly);
|
||||
dlg.setFileMode(QFileDialog::Directory);
|
||||
dlg.setOption(QFileDialog::ShowDirsOnly, true);
|
||||
|
||||
if (!suggested.isEmpty())
|
||||
dlg.selectFile(suggested);
|
||||
|
@ -239,7 +239,7 @@ void setValid(QWidget * widget, bool valid)
|
||||
widget->setPalette(QPalette());
|
||||
} else {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user