QTfrontend/HWApplication.cpp
changeset 5255 947025eeb5dc
parent 5252 ded882439548
child 5257 0bbdd47522b9
equal deleted inserted replaced
5254:f04327ab2dd6 5255:947025eeb5dc
    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;