MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / setHeaderData

Method setHeaderData

tools/monitor/MonitorDataModel.cpp:264–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264bool
265MonitorDataModel::setHeaderData(
266 int section,
267 Qt::Orientation /* orientation */,
268 const QVariant& value,
269 int role
270)
271{
272 switch( role) {
273 case Qt::DisplayRole:
274 this->root_->setData( section, value);
275 // this->getNode( index)->setColor( section, QColor(255,255,255));
276 break;
277
278 case Qt::BackgroundRole:
279 this->root_->setColor( section, value);
280 break;
281
282 default: return false;
283 }
284
285 emit
286 dataChanged( QModelIndex(), QModelIndex());
287 return true;
288}
289
290bool
291MonitorDataModel::insertRows(

Callers

nothing calls this directly

Calls 2

setColorMethod · 0.80
setDataMethod · 0.45

Tested by

no test coverage detected