| 37 | /* TRANSLATOR Gui::ModuleIO */ |
| 38 | |
| 39 | bool ModuleIO::verifyFile(const QString& filename) |
| 40 | { |
| 41 | QFileInfo fi(filename); |
| 42 | if (!fi.exists() || !fi.isFile()) { |
| 43 | QMessageBox::critical( |
| 44 | Gui::getMainWindow(), |
| 45 | tr("File not found"), |
| 46 | tr("The file '%1' cannot be opened.").arg(filename) |
| 47 | ); |
| 48 | return false; |
| 49 | } |
| 50 | |
| 51 | return true; |
| 52 | } |
| 53 | |
| 54 | void ModuleIO::openFile(const QString& filename) |
| 55 | { |
nothing calls this directly
no test coverage detected