Changeset 1504 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Jan 19, 2009, 12:02:42 PM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1503 r1504  
    873873////////////////////////////////////////////////////////////////////////////
    874874void bncWindow::slotSaveOptions() {
     875
     876  QStringList mountPoints;
     877  for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
     878    QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
     879              "@"  + _mountPointsTable->item(iRow, 1)->text() );
     880
     881    mountPoints.append(url.toString() + " " +
     882                       _mountPointsTable->item(iRow, 2)->text()
     883               + " " + _mountPointsTable->item(iRow, 3)->text()
     884               + " " + _mountPointsTable->item(iRow, 4)->text()
     885               + " " + _mountPointsTable->item(iRow, 5)->text()
     886               + " " + _mountPointsTable->item(iRow, 6)->text());
     887  }
     888
    875889  QSettings settings;
     890
    876891  settings.setValue("adviseFail",  _adviseFailSpinBox->value());
    877892  settings.setValue("adviseReco",  _adviseRecoSpinBox->value());
     
    889904  settings.setValue("makePause",   _makePauseCheckBox->checkState());
    890905  settings.setValue("miscMount",   _miscMountLineEdit->text());
     906  settings.setValue("mountPoints", mountPoints);
    891907  settings.setValue("obsRate",     _obsRateComboBox->currentText());
    892908  settings.setValue("onTheFlyInterval", _onTheFlyComboBox->currentText());
     
    915931  settings.setValue("startTab",    aogroup->currentIndex());
    916932  settings.setValue("waitTime",    _waitTimeSpinBox->value());
    917   QStringList mountPoints;
    918 
    919   for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
    920     QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
    921               "@"  + _mountPointsTable->item(iRow, 1)->text() );
    922 
    923     mountPoints.append(url.toString() + " " +
    924                        _mountPointsTable->item(iRow, 2)->text()
    925                + " " + _mountPointsTable->item(iRow, 3)->text()
    926                + " " + _mountPointsTable->item(iRow, 4)->text()
    927                + " " + _mountPointsTable->item(iRow, 5)->text()
    928                + " " + _mountPointsTable->item(iRow, 6)->text());
    929   }
    930   settings.setValue("mountPoints", mountPoints);
     933
    931934  if (_caster) {
    932935    _caster->slotReadMountPoints();
Note: See TracChangeset for help on using the changeset viewer.