| 317 | } |
| 318 | |
| 319 | bool 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 | } |
nothing calls this directly
no test coverage detected