equal
deleted
inserted
replaced
27 |
27 |
28 } |
28 } |
29 |
29 |
30 bool HWApplication::event(QEvent *event) { |
30 bool HWApplication::event(QEvent *event) { |
31 QFileOpenEvent *openEvent; |
31 QFileOpenEvent *openEvent; |
|
32 |
32 switch (event->type()) { |
33 switch (event->type()) { |
33 case QEvent::FileOpen: |
34 case QEvent::FileOpen: |
34 openEvent = (QFileOpenEvent *)event; |
35 openEvent = (QFileOpenEvent *)event; |
35 form->PlayDemoQuick(openEvent->file()); |
36 if (form) form->PlayDemoQuick(openEvent->file()); |
36 |
|
37 return true; |
37 return true; |
38 break; |
38 break; |
39 default: |
39 default: |
40 return QApplication::event(event); |
40 return QApplication::event(event); |
41 break; |
41 break; |