Changeset 59 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Aug 24, 2006, 2:16:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r35 r59 92 92 _outFileLineEdit = new QLineEdit(settings.value("outFile").toString()); 93 93 _outPortLineEdit = new QLineEdit(settings.value("outPort").toString()); 94 _mountPointsTable = new QTableWidget(0, 1);94 _mountPointsTable = new QTableWidget(0,2); 95 95 _mountPointsTable->setMaximumHeight(100); 96 96 _mountPointsTable->horizontalHeader()->hide(); … … 106 106 int iRow = 0; 107 107 while (it.hasNext()) { 108 QString mPoint = it.next(); 108 QStringList hlp = it.next().split(" "); 109 QString mPoint = hlp[0]; 110 QString format = hlp[1]; 109 111 _mountPointsTable->insertRow(iRow); 110 112 _mountPointsTable->setItem(iRow, 0, new QTableWidgetItem(mPoint)); 113 _mountPointsTable->setItem(iRow, 1, new QTableWidgetItem(format)); 111 114 iRow++; 112 115 } … … 161 164 QListIterator<QString> it(*mountPoints); 162 165 while (it.hasNext()) { 163 QString mPoint = it.next(); 166 QStringList hlp = it.next().split(" "); 167 QString mPoint = hlp[0]; 168 QString format = hlp[1]; 164 169 _mountPointsTable->insertRow(iRow); 165 170 _mountPointsTable->setItem(iRow, 0, new QTableWidgetItem(mPoint)); 171 _mountPointsTable->setItem(iRow, 1, new QTableWidgetItem(format)); 166 172 iRow++; 167 173 } … … 184 190 QStringList mountPoints; 185 191 for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) { 186 mountPoints.append(_mountPointsTable->item(iRow, 0)->text()); 192 mountPoints.append(_mountPointsTable->item(iRow, 0)->text() + 193 " " + _mountPointsTable->item(iRow, 1)->text()); 187 194 } 188 195 settings.setValue("mountPoints", mountPoints); … … 221 228 QUrl url(_mountPointsTable->item(iRow, 0)->text()); 222 229 QByteArray mountPoint = url.path().mid(1).toAscii(); 230 QByteArray format = _mountPointsTable->item(iRow, 1)->text().toAscii(); 223 231 224 232 bncGetThread* getThread = new bncGetThread(url.host(), url.port(), 225 233 proxyHost, proxyPort, 226 mountPoint, user, password); 234 mountPoint, user, password, 235 format); 227 236 _bncCaster->addGetThread(getThread); 228 237
Note:
See TracChangeset
for help on using the changeset viewer.