| 2172 | } |
| 2173 | |
| 2174 | void 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 | |
| 2195 | void MainWindow::autotesterReload() { |
| 2196 | autotesterOpen(ui->JSONconfigPath->text()); |
nothing calls this directly
no outgoing calls
no test coverage detected