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

Method event

gui/src/qnapiapp.cpp:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319bool QNapiApp::event(QEvent *ev) {
320 if (ev->type() == QEvent::FileOpen) {
321 bool batchMode = creationDT.secsTo(QDateTime::currentDateTime()) <= 1;
322 progress()->setBatchMode(batchMode);
323 emit downloadFile(static_cast<QFileOpenEvent *>(ev)->file());
324 } else {
325 return QApplication::event(ev);
326 }
327
328 return true;
329}

Callers

nothing calls this directly

Calls 1

setBatchModeMethod · 0.80

Tested by

no test coverage detected