Changeset 1475 in ntrip for trunk/BNC/bnctabledlg.cpp
- Timestamp:
- Jan 17, 2009, 4:11:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r1474 r1475 296 296 QSettings settings; 297 297 settings.setValue("casterHost", _casterHostComboBox->currentText()); 298 QStringList casterHostList;299 for (int ii = 0; ii < _casterHostComboBox->count(); ii++) {300 casterHostList.push_back(_casterHostComboBox->itemText(ii));301 }302 settings.setValue("casterHostList", casterHostList);303 settings.setValue("casterPort", _casterPortLineEdit->text());304 298 settings.setValue("ntripVersion", _ntripVersionComboBox->currentText()); 305 settings.setValue("casterUser", _casterUserLineEdit->text());306 settings.setValue("casterPassword", _casterPasswordLineEdit->text());307 299 308 300 QStringList* mountPoints = new QStringList; … … 557 549 _casterUserLineEdit->setText(""); 558 550 _casterPortLineEdit->setText(newCasterPort); 551 552 QSettings settings; 553 QStringList casterHostList = settings.value("casterHostList").toStringList(); 554 casterHostList << QString("http://" + newCasterHost + ":" + newCasterPort); 555 settings.setValue("casterHostList", casterHostList); 556 settings.sync(); 559 557 } 560 558 … … 571 569 QUrl url(item); 572 570 if (url.host() == newHost) { 573 cout << "slot: " << url.toString().toAscii().data() << " "574 << newHost.toAscii().data() << endl;575 571 _casterUserLineEdit->setText(url.userName()); 576 572 if (url.port() > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.