| 299 | } |
| 300 | |
| 301 | void SettingsDialog::on_pushButtonLibDav1dSelectFile_clicked() |
| 302 | { |
| 303 | QStringList newFiles = this->getLibraryPath(ui.lineEditLibDav1d->text(), |
| 304 | "Please select the libDav1d library file to use."); |
| 305 | if (newFiles.count() != 1) |
| 306 | return; |
| 307 | QString error; |
| 308 | if (!decoder::decoderDav1d::checkLibraryFile(newFiles[0], error)) |
| 309 | QMessageBox::critical( |
| 310 | this, |
| 311 | "Error testing the library", |
| 312 | "The selected file does not appear to be a usable libDav1d library. Error: " + error); |
| 313 | else |
| 314 | ui.lineEditLibDav1d->setText(newFiles[0]); |
| 315 | } |
| 316 | |
| 317 | void SettingsDialog::on_pushButtonLibVTMSelectFile_clicked() |
| 318 | { |
nothing calls this directly
no test coverage detected