MCPcopy Create free account
hub / github.com/IENT/YUView / on_pushButtonlibHMSelectFile_clicked

Method on_pushButtonlibHMSelectFile_clicked

YUViewLib/src/ui/SettingsDialog.cpp:285–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void SettingsDialog::on_pushButtonlibHMSelectFile_clicked()
286{
287 QStringList newFiles = this->getLibraryPath(
288 ui.lineEditLibHMFile->text(), "Please select the libHMDecoder library file to use.");
289 if (newFiles.count() != 1)
290 return;
291 QString error;
292 if (!decoder::decoderHM::checkLibraryFile(newFiles[0], error))
293 QMessageBox::critical(
294 this,
295 "Error testing the library",
296 "The selected file does not appear to be a usable libHMDecoder library. Error: " + error);
297 else
298 ui.lineEditLibHMFile->setText(newFiles[0]);
299}
300
301void SettingsDialog::on_pushButtonLibDav1dSelectFile_clicked()
302{

Callers

nothing calls this directly

Calls 3

getLibraryPathMethod · 0.95
textMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected