| 1296 | } |
| 1297 | |
| 1298 | void MainWindow::stateFromFile() { |
| 1299 | QString path = QFileDialog::getOpenFileName(this, tr("Select saved image to restore from"), |
| 1300 | m_dir.absolutePath(), |
| 1301 | tr("CEmu images (*.ce);;All files (*.*)")); |
| 1302 | if (!path.isEmpty()) { |
| 1303 | m_dir = QFileInfo(path).absoluteDir(); |
| 1304 | stateFromPath(path); |
| 1305 | } |
| 1306 | } |
| 1307 | |
| 1308 | void MainWindow::stateToFile() { |
| 1309 | QString path = QFileDialog::getSaveFileName(this, tr("Set image to save to"), |
nothing calls this directly
no outgoing calls
no test coverage detected