| 104 | } |
| 105 | |
| 106 | bool event(QEvent *event) |
| 107 | { |
| 108 | if (event->type() == QEvent::FileOpen) { |
| 109 | QFileOpenEvent *openEvent = static_cast<QFileOpenEvent *>(event); |
| 110 | qDebug() << "Open file" << openEvent->file(); |
| 111 | s_openfile = openEvent->file(); |
| 112 | openfile(s_openfile); |
| 113 | } |
| 114 | |
| 115 | return QApplication::event(event); |
| 116 | } |
| 117 | QString s_openfile; |
| 118 | }; |
| 119 | #endif |
nothing calls this directly
no test coverage detected