| 326 | } |
| 327 | |
| 328 | void VersionProxyModel::sourceDataChanged(const QModelIndex &source_top_left, |
| 329 | const QModelIndex &source_bottom_right) |
| 330 | { |
| 331 | if(source_top_left.parent() != source_bottom_right.parent()) |
| 332 | return; |
| 333 | |
| 334 | // whole row is getting changed |
| 335 | auto topLeft = createIndex(source_top_left.row(), 0); |
| 336 | auto bottomRight = createIndex(source_bottom_right.row(), columnCount() - 1); |
| 337 | emit dataChanged(topLeft, bottomRight); |
| 338 | } |
| 339 | |
| 340 | void VersionProxyModel::setSourceModel(QAbstractItemModel *replacingRaw) |
| 341 | { |