Changeset 4167 in ntrip


Ignore:
Timestamp:
May 14, 2012, 2:10:21 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r4107 r4167  
    789789#endif
    790790}
     791
     792// Handling Events (virtual)
     793////////////////////////////////////////////////////////////////////////////
     794bool bncApp::event(QEvent* ev) {
     795
     796  if (ev->type() == QEvent::FileOpen) {
     797    QString fileName = static_cast<QFileOpenEvent*>(ev)->file();
     798    return true;
     799  }
     800   
     801  return QApplication::event(ev);
     802}
  • trunk/BNC/bncapp.h

    r4070 r4167  
    6262    const QString& pgmName() {return _pgmName;}
    6363    const QString& userName() {return _userName;}
     64  protected:
     65    virtual bool event(QEvent* ev);
    6466
    6567  public slots:
Note: See TracChangeset for help on using the changeset viewer.