MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / browseForROM

Method browseForROM

gui/qt/romselection.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void 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
89void RomSelection::nextPage() {
90 ui->stackedWidget->setCurrentIndex(ui->stackedWidget->currentIndex() + 1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected