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

Method setColor

tools/monitor/TreeNode.h:267–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267inline
268bool
269Monitor::TreeNode::setColor( int column, const QVariant& data)
270{
271 if( column < 0 || column > this->width()) {
272 return false;
273 }
274
275 if( column < this->colors_.count()) {
276 this->colors_.replace( column, data);
277
278 } else {
279 for( int index = this->colors_.count(); index < column; ++index) {
280 this->colors_.push_back( QVariant(QColor()));
281 }
282 this->colors_.insert( column, data);
283 }
284
285 return true;
286}
287
288inline
289void

Callers 7

staleValueRefMethod · 0.95
manageTransportLinkMethod · 0.80
manageTopicLinkMethod · 0.80
insertChildrenMethod · 0.80
setDataMethod · 0.80
setHeaderDataMethod · 0.80
paintMethod · 0.80

Calls 4

widthMethod · 0.95
countMethod · 0.45
replaceMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected