Changeset 115 in ntrip
- Timestamp:
- Sep 7, 2006, 1:47:36 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r107 r115 159 159 for (int ic = 0; ic < columns.size()-1; ic++) { 160 160 QTableWidgetItem* it = new QTableWidgetItem(columns[ic+1]); 161 it->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled);161 it->setFlags(it->flags() & ~Qt::ItemIsEditable); 162 162 _table->setItem(nRow, ic, it); 163 163 } -
trunk/BNC/bncwindow.cpp
r114 r115 121 121 _mountPointsTable->horizontalHeader()->hide(); 122 122 _mountPointsTable->verticalHeader()->hide(); 123 _mountPointsTable->setGridStyle(Qt::NoPen); 124 _mountPointsTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 123 125 _mountPointsTable->setSelectionMode(QAbstractItemView::ExtendedSelection); 124 126 _mountPointsTable->setSelectionBehavior(QAbstractItemView::SelectRows); … … 140 142 QTableWidgetItem* it; 141 143 it = new QTableWidgetItem(url.userInfo()); 142 it->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled);144 it->setFlags(it->flags() & ~Qt::ItemIsEditable); 143 145 _mountPointsTable->setItem(iRow, 0, it); 144 146 145 147 it = new QTableWidgetItem(fullPath); 146 it->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled);148 it->setFlags(it->flags() & ~Qt::ItemIsEditable); 147 149 _mountPointsTable->setItem(iRow, 1, it); 148 150 149 151 it = new QTableWidgetItem(format); 150 it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable);151 152 _mountPointsTable->setItem(iRow, 2, it); 152 153 iRow++; … … 260 261 QTableWidgetItem* it; 261 262 it = new QTableWidgetItem(url.userInfo()); 262 it->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled);263 it->setFlags(it->flags() & ~Qt::ItemIsEditable); 263 264 _mountPointsTable->setItem(iRow, 0, it); 264 265 265 266 it = new QTableWidgetItem(fullPath); 266 it->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled);267 it->setFlags(it->flags() & ~Qt::ItemIsEditable); 267 268 _mountPointsTable->setItem(iRow, 1, it); 268 269 269 270 it = new QTableWidgetItem(format); 270 it->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable);271 271 _mountPointsTable->setItem(iRow, 2, it); 272 272 iRow++;
Note:
See TracChangeset
for help on using the changeset viewer.