| 41 | |
| 42 | protected: |
| 43 | bool event(QEvent *event) override |
| 44 | { |
| 45 | switch (event->type()) { |
| 46 | case QEvent::FileOpen: |
| 47 | window->openComicFromPath(static_cast<QFileOpenEvent *>(event)->file()); |
| 48 | return true; |
| 49 | default: |
| 50 | return QApplication::event(event); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | private: |
| 55 | MainWindowViewer *window; |
nothing calls this directly
no test coverage detected