Changeset 3158 in ntrip
- Timestamp:
- Mar 27, 2011, 6:44:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3157 r3158 1286 1286 QString hlp; 1287 1287 for (int iCol = 0; iCol < _rtnetTable->columnCount(); iCol++) { 1288 if (_rtnetTable->item(iRow, iCol)) { 1289 hlp += _rtnetTable->item(iRow, iCol)->text() + " "; 1288 if (_rtnetTable->cellWidget(iRow, iCol) && 1289 (iCol == 3 || iCol == 4 || iCol == 5)) { 1290 if (iCol == 3) { 1291 QLineEdit* passwd = (QLineEdit*)(_rtnetTable->cellWidget(iRow, iCol)); 1292 hlp += passwd->text() + ","; 1293 } 1294 else if (iCol == 4) { 1295 QComboBox* system = (QComboBox*)(_rtnetTable->cellWidget(iRow, iCol)); 1296 hlp += system->currentText() + ","; 1297 } 1298 else if (iCol == 5) { 1299 QCheckBox* com = (QCheckBox*)(_rtnetTable->cellWidget(iRow, iCol)); 1300 QString state; state.setNum(com->checkState()); 1301 hlp += state + ","; 1302 } 1303 } 1304 else if (_rtnetTable->item(iRow, iCol)) { 1305 hlp += _rtnetTable->item(iRow, iCol)->text() + ","; 1290 1306 } 1291 1307 } … … 2200 2216 } 2201 2217 else if (iCol == 4) { 2202 QComboBox* system Combo= new QComboBox();2203 system Combo->setEditable(false);2204 system Combo->addItems(QString("IGS05,ETRF2000,NAD83,GDA94,SIRGAS95,SIRGAS2000,Custom").split(","));2205 system Combo->setFrame(false);2206 _rtnetTable->setCellWidget(iRow, iCol, system Combo);2218 QComboBox* system = new QComboBox(); 2219 system->setEditable(false); 2220 system->addItems(QString("IGS05,ETRF2000,NAD83,GDA94,SIRGAS95,SIRGAS2000,Custom").split(",")); 2221 system->setFrame(false); 2222 _rtnetTable->setCellWidget(iRow, iCol, system); 2207 2223 } 2208 2224 else if (iCol == 5) {
Note:
See TracChangeset
for help on using the changeset viewer.