Qt Gui: allow opening multiple files at the same time
parent
7df82cee18
commit
ff7a86c755
|
@ -570,6 +570,7 @@ void MainWindow::on_actionOpen_triggered() {
|
||||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
dialog->setAcceptMode(QFileDialog::AcceptOpen);
|
dialog->setAcceptMode(QFileDialog::AcceptOpen);
|
||||||
dialog->setViewMode(QFileDialog::Detail);
|
dialog->setViewMode(QFileDialog::Detail);
|
||||||
|
dialog->setFileMode(QFileDialog::ExistingFiles);
|
||||||
dialog->setWindowModality(Qt::WindowModal);
|
dialog->setWindowModality(Qt::WindowModal);
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
dialog->restoreState(settings.value("fileDialogState").toByteArray());
|
dialog->restoreState(settings.value("fileDialogState").toByteArray());
|
||||||
|
|
Loading…
Reference in New Issue