Changeset 3158 in ntrip


Ignore:
Timestamp:
Mar 27, 2011, 6:44:46 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3157 r3158  
    12861286    QString hlp;
    12871287    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() + ",";
    12901306      }
    12911307    }
     
    22002216    }
    22012217    else if (iCol == 4) {
    2202       QComboBox* systemCombo = new QComboBox();
    2203       systemCombo->setEditable(false);
    2204       systemCombo->addItems(QString("IGS05,ETRF2000,NAD83,GDA94,SIRGAS95,SIRGAS2000,Custom").split(","));
    2205       systemCombo->setFrame(false);
    2206       _rtnetTable->setCellWidget(iRow, iCol, systemCombo);
     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);
    22072223    }
    22082224    else if (iCol == 5) {
Note: See TracChangeset for help on using the changeset viewer.