| 75 | } |
| 76 | |
| 77 | void RomSelection::browseForROM() { |
| 78 | QFileDialog dialog(this); |
| 79 | dialog.setFileMode(QFileDialog::AnyFile); |
| 80 | dialog.setWindowTitle(tr("Select ROM file")); |
| 81 | dialog.setNameFilter(tr("ROM Image (*.rom *.Rom *.ROM);;All Files (*.*)")); |
| 82 | if (dialog.exec()) { |
| 83 | QStringList selected = dialog.selectedFiles(); |
| 84 | m_rom = selected.first(); |
| 85 | close(); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | void RomSelection::nextPage() { |
| 90 | ui->stackedWidget->setCurrentIndex(ui->stackedWidget->currentIndex() + 1); |
nothing calls this directly
no outgoing calls
no test coverage detected