Changeset 5465 in ntrip
- Timestamp:
- Sep 15, 2013, 11:00:07 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/dlgconf.cpp
r5464 r5465 27 27 t_dlgConf::t_dlgConf(QWidget* parent) : QDialog(parent) { 28 28 29 _hostLineEdit = new QLineEdit; 30 _portLineEdit = new QLineEdit; 29 t_settings settings(pluginName); 30 31 _hostLineEdit = new QLineEdit(settings.value("host").toString(), this); 32 _portLineEdit = new QLineEdit(settings.value("port").toString(), this); 31 33 32 34 … … 49 51 mainLayout->addLayout(buttonLayout); 50 52 setLayout(mainLayout); 51 52 t_settings settings(pluginName);53 settings.setValue("host", "rtnet.rtcm-ntrip.org");54 settings.setValue("port", 7777);55 settings.sync();56 57 53 } 58 54 … … 65 61 ///////////////////////////////////////////////////////////////////////////// 66 62 void t_dlgConf::accept() { 67 qDebug() << "accept hovno"; 63 t_settings settings(pluginName); 64 settings.setValue("host", _hostLineEdit->text()); 65 settings.setValue("port", _portLineEdit->text()); 68 66 } 69 67
Note:
See TracChangeset
for help on using the changeset viewer.