| 288 | } |
| 289 | |
| 290 | bool |
| 291 | MonitorDataModel::insertRows( |
| 292 | int row, |
| 293 | int count, |
| 294 | const QModelIndex& parent |
| 295 | ) |
| 296 | { |
| 297 | bool success; |
| 298 | |
| 299 | beginInsertRows( parent, row, row+count-1); |
| 300 | success = this->getNode( parent)->insertChildren( |
| 301 | row, |
| 302 | count, |
| 303 | this->root_->width() |
| 304 | ); |
| 305 | endInsertRows(); |
| 306 | |
| 307 | emit layoutChanged(); |
| 308 | |
| 309 | return success; |
| 310 | } |
| 311 | |
| 312 | bool |
| 313 | MonitorDataModel::removeRows( |
no test coverage detected