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

Method autotesterLoad

gui/qt/mainwindow.cpp:2174–2193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2172}
2173
2174void MainWindow::autotesterLoad() {
2175 QFileDialog dialog(this);
2176 int good;
2177
2178 ui->buttonLaunchTest->setEnabled(false);
2179
2180 dialog.setDirectory(m_dir);
2181 dialog.setFileMode(QFileDialog::ExistingFile);
2182 dialog.setNameFilter(QStringLiteral("JSON config (*.json)"));
2183
2184 good = dialog.exec();
2185 m_dir.setPath(dialog.directory().absolutePath());
2186
2187 if (!good) {
2188 return;
2189 }
2190
2191 QStringList selected = dialog.selectedFiles();
2192 autotesterOpen(selected.first());
2193}
2194
2195void MainWindow::autotesterReload() {
2196 autotesterOpen(ui->JSONconfigPath->text());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected