Changeset 115 in ntrip


Ignore:
Timestamp:
Sep 7, 2006, 1:47:36 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r107 r115  
    159159      for (int ic = 0; ic < columns.size()-1; ic++) {
    160160        QTableWidgetItem* it = new QTableWidgetItem(columns[ic+1]);
    161         it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
     161        it->setFlags(it->flags() & ~Qt::ItemIsEditable);
    162162        _table->setItem(nRow, ic, it);
    163163      }
  • trunk/BNC/bncwindow.cpp

    r114 r115  
    121121  _mountPointsTable->horizontalHeader()->hide();
    122122  _mountPointsTable->verticalHeader()->hide();
     123  _mountPointsTable->setGridStyle(Qt::NoPen);
     124  _mountPointsTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    123125  _mountPointsTable->setSelectionMode(QAbstractItemView::ExtendedSelection);
    124126  _mountPointsTable->setSelectionBehavior(QAbstractItemView::SelectRows);
     
    140142    QTableWidgetItem* it;
    141143    it = new QTableWidgetItem(url.userInfo());
    142     it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
     144    it->setFlags(it->flags() & ~Qt::ItemIsEditable);
    143145    _mountPointsTable->setItem(iRow, 0, it);
    144146
    145147    it = new QTableWidgetItem(fullPath);
    146     it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
     148    it->setFlags(it->flags() & ~Qt::ItemIsEditable);
    147149    _mountPointsTable->setItem(iRow, 1, it);
    148150
    149151    it = new QTableWidgetItem(format);
    150     it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable);
    151152    _mountPointsTable->setItem(iRow, 2, it);
    152153    iRow++;
     
    260261    QTableWidgetItem* it;
    261262    it = new QTableWidgetItem(url.userInfo());
    262     it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
     263    it->setFlags(it->flags() & ~Qt::ItemIsEditable);
    263264    _mountPointsTable->setItem(iRow, 0, it);
    264265
    265266    it = new QTableWidgetItem(fullPath);
    266     it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
     267    it->setFlags(it->flags() & ~Qt::ItemIsEditable);
    267268    _mountPointsTable->setItem(iRow, 1, it);
    268269
    269270    it = new QTableWidgetItem(format);
    270     it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable);
    271271    _mountPointsTable->setItem(iRow, 2, it);
    272272    iRow++;
Note: See TracChangeset for help on using the changeset viewer.