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

Method on_pushButtonLibVTMSelectFile_clicked

YUViewLib/src/ui/SettingsDialog.cpp:317–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void SettingsDialog::on_pushButtonLibVTMSelectFile_clicked()
318{
319 QStringList newFiles = this->getLibraryPath(
320 ui.lineEditLibVTMFile->text(), "Please select the libVTMDecoder library file to use.");
321 if (newFiles.count() != 1)
322 return;
323 QString error;
324 if (!decoder::decoderVTM::checkLibraryFile(newFiles[0], error))
325 QMessageBox::critical(
326 this,
327 "Error testing the library",
328 "The selected file does not appear to be a usable libVTMDecoder library. Error: " + error);
329 else
330 ui.lineEditLibVTMFile->setText(newFiles[0]);
331}
332
333void SettingsDialog::on_pushButtonLibVVDecSelectFile_clicked()
334{

Callers

nothing calls this directly

Calls 3

getLibraryPathMethod · 0.95
textMethod · 0.80
setTextMethod · 0.80

Tested by

no test coverage detected