| 168 | } |
| 169 | |
| 170 | QStringList FileDialog::getOpenFileNames( |
| 171 | QWidget* parent, const QString& caption, const QString& dir, const QString& filter) { |
| 172 | FileDialog dlg(parent); |
| 173 | if (!caption.isEmpty()) { |
| 174 | dlg.setDialogTitle(caption); |
| 175 | } |
| 176 | dlg.setAcceptMode(QFileDialog::AcceptOpen); |
| 177 | dlg.setFileMode(QFileDialog::ExistingFiles); |
| 178 | if (!dir.isEmpty()) { |
| 179 | dlg.setDirectory(dir); |
| 180 | } |
| 181 | if (!filter.isEmpty()) { |
| 182 | dlg.setNameFilter(filter); |
| 183 | } |
| 184 | if (dlg.exec() != QDialog::Accepted) { |
| 185 | return {}; |
| 186 | } |
| 187 | return dlg.selectedFiles(); |
| 188 | } |
| 189 | |
| 190 | QString FileDialog::getSaveFileName( |
| 191 | QWidget* parent, const QString& caption, const QString& dir, const QString& filter, const QString& default_suffix) { |
nothing calls this directly
no test coverage detected