Changeset 1487 in ntrip
- Timestamp:
- Jan 17, 2009, 6:09:02 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r1472 r1487 88 88 _actSaveOpt = new QAction(tr("&Save && Activate Options"),this); 89 89 connect(_actSaveOpt, SIGNAL(triggered()), SLOT(slotSaveOptions())); 90 91 _actResetOpt = new QAction(tr("&Reset Options"),this); 92 connect(_actResetOpt, SIGNAL(triggered()), SLOT(slotResetOptions())); 90 93 91 94 _actQuit = new QAction(tr("&Quit"),this); … … 851 854 } 852 855 delete mountPoints; 856 } 857 858 // Reset Options 859 //////////////////////////////////////////////////////////////////////////// 860 void bncWindow::slotResetOptions() { 861 int iRet = QMessageBox::question(this, "Reset", "Delete saved options?", 862 QMessageBox::Yes, QMessageBox::No, 863 QMessageBox::NoButton); 864 if (iRet == QMessageBox::Yes) { 865 QSettings settings; 866 settings.remove(""); 867 } 853 868 } 854 869 … … 1090 1105 _menuFile->addAction(_actSaveOpt); 1091 1106 _menuFile->addSeparator(); 1107 _menuFile->addAction(_actResetOpt); 1108 _menuFile->addSeparator(); 1092 1109 _menuFile->addAction(_actQuit); 1093 1110 -
trunk/BNC/bncwindow.h
r1439 r1487 68 68 void slotFontSel(); 69 69 void slotSaveOptions(); 70 void slotResetOptions(); 70 71 void slotAddMountPoints(); 71 72 void slotGetData(); … … 91 92 QAction* _actFontSel; 92 93 QAction* _actSaveOpt; 94 QAction* _actResetOpt; 93 95 QAction* _actQuit; 94 96 QAction* _actGetData;
Note:
See TracChangeset
for help on using the changeset viewer.