Changeset 1504 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Jan 19, 2009, 12:02:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r1503 r1504 873 873 //////////////////////////////////////////////////////////////////////////// 874 874 void 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 875 889 QSettings settings; 890 876 891 settings.setValue("adviseFail", _adviseFailSpinBox->value()); 877 892 settings.setValue("adviseReco", _adviseRecoSpinBox->value()); … … 889 904 settings.setValue("makePause", _makePauseCheckBox->checkState()); 890 905 settings.setValue("miscMount", _miscMountLineEdit->text()); 906 settings.setValue("mountPoints", mountPoints); 891 907 settings.setValue("obsRate", _obsRateComboBox->currentText()); 892 908 settings.setValue("onTheFlyInterval", _onTheFlyComboBox->currentText()); … … 915 931 settings.setValue("startTab", aogroup->currentIndex()); 916 932 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 931 934 if (_caster) { 932 935 _caster->slotReadMountPoints();
Note:
See TracChangeset
for help on using the changeset viewer.