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

Method showScanDialog

gui/src/qnapiapp.cpp:228–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228bool QNapiApp::showScanDialog(QString init_dir) {
229 if (!f_scan) f_scan = new frmScan();
230
231 if (f_scan->isVisible()) {
232 f_scan->raise();
233 return false;
234 }
235
236 f_scan->setInitDir(init_dir);
237
238 bool result = false;
239
240 if (f_scan->exec() == QDialog::Accepted) {
241 result = true;
242 progress()->enqueueFiles(f_scan->getSelectedFiles());
243 progress()->download();
244 }
245
246 delete f_scan;
247 f_scan = 0;
248 return result;
249}
250
251void QNapiApp::showConvertDialog() {
252 if (!f_convert) f_convert = new frmConvert();

Callers 1

mainFunction · 0.80

Calls 5

setInitDirMethod · 0.80
enqueueFilesMethod · 0.80
getSelectedFilesMethod · 0.80
execMethod · 0.45
downloadMethod · 0.45

Tested by

no test coverage detected