Changeset 3155 in ntrip


Ignore:
Timestamp:
Mar 27, 2011, 5:47:20 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3154 r3155  
    478478  _rtnetTable->setSelectionBehavior(QAbstractItemView::SelectRows);
    479479  _rtnetTable->setMaximumWidth(70*ww);
    480   _rtnetTable->horizontalHeader()->resizeSection(0,15*ww);
     480  _rtnetTable->horizontalHeader()->resizeSection(0,13*ww);
    481481  _rtnetTable->horizontalHeader()->resizeSection(1,5*ww);
    482   _rtnetTable->horizontalHeader()->resizeSection(2,5*ww);
     482  _rtnetTable->horizontalHeader()->resizeSection(2,6*ww);
    483483  _rtnetTable->horizontalHeader()->resizeSection(3,8*ww);
    484   _rtnetTable->horizontalHeader()->resizeSection(4,6*ww);
     484  _rtnetTable->horizontalHeader()->resizeSection(4,11*ww);
    485485  _rtnetTable->horizontalHeader()->resizeSection(5,4*ww);
    486486  _rtnetTable->horizontalHeader()->resizeSection(6,20*ww);
    487487  _rtnetTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
    488   _rtnetTable->horizontalHeader()->setStretchLastSection(true);
     488  ///  _rtnetTable->horizontalHeader()->setStretchLastSection(true);
    489489  _rtnetTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    490490
     
    21902190  _rtnetTable->insertRow(iRow);
    21912191  for (int iCol = 0; iCol < _rtnetTable->columnCount(); iCol++) {
    2192     _rtnetTable->setItem(iRow, iCol, new QTableWidgetItem(""));
     2192    if      (iCol == 4) {
     2193      QComboBox* systemCombo = new QComboBox();
     2194      systemCombo->setEditable(false);
     2195      systemCombo->addItems(QString("IGS05,ETRF2000,NAD83,GDA94,SIRGAS95,SIRGAS2000,Custom").split(","));
     2196      _rtnetTable->setCellWidget(iRow, iCol, systemCombo);
     2197    }
     2198    else if (iCol == 5) {
     2199      QCheckBox* com = new QCheckBox();
     2200      _rtnetTable->setCellWidget(iRow, iCol, com);
     2201    }
     2202    else {
     2203      _rtnetTable->setItem(iRow, iCol, new QTableWidgetItem(""));
     2204    }
    21932205  }
    21942206}
Note: See TracChangeset for help on using the changeset viewer.