| 265 | } |
| 266 | |
| 267 | inline |
| 268 | bool |
| 269 | Monitor::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 | |
| 288 | inline |
| 289 | void |
no test coverage detected