Changeset 3828 in ntrip


Ignore:
Timestamp:
Apr 11, 2012, 11:32:42 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r3826 r3828  
    22# Switch to debug configuration
    33# -----------------------------
    4 CONFIG -= debug
    5 CONFIG += release
     4CONFIG -= release
     5CONFIG += debug
    66
    77
  • trunk/BNC/teqcdlg.cpp

    r3745 r3828  
    105105  connect(_buttonWhatsThis, SIGNAL(clicked()), this, SLOT(slotWhatsThis()));
    106106
    107   _buttonOK = new QPushButton(tr("OK"), this);
     107  _buttonOK = new QPushButton(tr("OK / Save"), this);
    108108  connect(_buttonOK, SIGNAL(clicked()), this, SLOT(slotOK()));
    109109
     
    133133////////////////////////////////////////////////////////////////////////////
    134134void teqcDlg::slotOK() {
    135 
     135  // saveOptions();
     136  done(0);
    136137}
    137138
     
    141142  QWhatsThis::enterWhatsThisMode();
    142143}
     144
     145// Close Dialog gracefully
     146////////////////////////////////////////////////////////////////////////////
     147void teqcDlg::closeEvent(QCloseEvent* event) {
     148
     149  int iRet = QMessageBox::question(this, "Close", "Save Options?",
     150                                   QMessageBox::Yes, QMessageBox::No,
     151                                   QMessageBox::Cancel);
     152
     153  if      (iRet == QMessageBox::Cancel) {
     154    event->ignore();
     155    return;
     156  }
     157  else if (iRet == QMessageBox::Yes) {
     158    //    saveOptions();
     159  }
     160
     161  QDialog::closeEvent(event);
     162}
  • trunk/BNC/teqcdlg.h

    r3743 r3828  
    4545    void slotWhatsThis();
    4646
     47  protected:
     48    virtual void closeEvent(QCloseEvent *);
     49
    4750  private:
    4851   QComboBox*     _teqcRnxVersion;
Note: See TracChangeset for help on using the changeset viewer.