* @brief ConfigDialog::selectExecutable pop-up to choose an executable. * @return */
| 389 | * @return |
| 390 | */ |
| 391 | auto ConfigDialog::selectExecutable() -> QString { |
| 392 | QFileDialog dialog(this); |
| 393 | dialog.setFileMode(QFileDialog::ExistingFile); |
| 394 | dialog.setOption(QFileDialog::ReadOnly); |
| 395 | if (dialog.exec()) { |
| 396 | return dialog.selectedFiles().constFirst(); |
| 397 | } |
| 398 | |
| 399 | return {}; |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * @brief ConfigDialog::selectFolder pop-up to choose a folder. |
nothing calls this directly
no outgoing calls
no test coverage detected