MCPcopy Create free account
hub / github.com/QNapi/qnapi / srcSubSelectClicked

Method srcSubSelectClicked

gui/src/forms/frmconvert.cpp:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void frmConvert::srcSubSelectClicked() {
79 QNapiOpenDialog openSubtitle(this, tr("Choose a subtitles file"),
80 QFileInfo(ui.leSrcSubFile->text()).path(),
81 QNapiOpenDialog::Subtitles);
82 if (openSubtitle.selectFile()) {
83 ui.leSrcSubFile->setText(openSubtitle.selectedFiles().first());
84 }
85}
86
87void frmConvert::srcSubFileLoaded(const QString &srcSubFileName) {
88 bool fileExists = QFileInfo(srcSubFileName).exists();

Callers

nothing calls this directly

Calls 2

selectFileMethod · 0.80
selectedFilesMethod · 0.80

Tested by

no test coverage detected