Changeset 5465 in ntrip


Ignore:
Timestamp:
Sep 15, 2013, 11:00:07 AM (8 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/dlgconf.cpp

    r5464 r5465  
    2727t_dlgConf::t_dlgConf(QWidget* parent) : QDialog(parent) {
    2828
    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);
    3133
    3234
     
    4951  mainLayout->addLayout(buttonLayout);
    5052  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 
    5753}
    5854
     
    6561/////////////////////////////////////////////////////////////////////////////
    6662void t_dlgConf::accept() {
    67   qDebug() << "accept hovno";
     63  t_settings settings(pluginName);
     64  settings.setValue("host", _hostLineEdit->text());
     65  settings.setValue("port", _portLineEdit->text());
    6866}
    6967
Note: See TracChangeset for help on using the changeset viewer.