| 40 | } |
| 41 | |
| 42 | void SettingsWindow::on_buttonBox_accepted() |
| 43 | { |
| 44 | // save the settings |
| 45 | _mainWindow->setDefaultImagePath(ui->txtDefaultImagePath->text()); |
| 46 | _mainWindow->setPluginDevPath(ui->txtPluginDevPath->text()); |
| 47 | _mainWindow->setPluginPath(ui->txtPluginPath->text()); |
| 48 | _mainWindow->setLogFileEnabled(ui->chkLogFile->isChecked()); |
| 49 | _mainWindow->setUseOpenCV(ui->chkOpenCV->isChecked()); |
| 50 | _mainWindow->setAutosaveEnabled(ui->chkAutosave->isChecked()); |
| 51 | |
| 52 | _mainWindow->writeSettings(); |
| 53 | |
| 54 | close(); |
| 55 | } |
| 56 | |
| 57 | void SettingsWindow::on_buttonBox_rejected() |
| 58 | { |
nothing calls this directly
no test coverage detected