| 288 | } |
| 289 | |
| 290 | void VersionProxyModel::sourceDataChanged(const QModelIndex &source_top_left, |
| 291 | const QModelIndex &source_bottom_right) |
| 292 | { |
| 293 | if(source_top_left.parent() != source_bottom_right.parent()) |
| 294 | return; |
| 295 | |
| 296 | // whole row is getting changed |
| 297 | auto topLeft = createIndex(source_top_left.row(), 0); |
| 298 | auto bottomRight = createIndex(source_bottom_right.row(), columnCount() - 1); |
| 299 | emit dataChanged(topLeft, bottomRight); |
| 300 | } |
| 301 | |
| 302 | void VersionProxyModel::setSourceModel(QAbstractItemModel *replacingRaw) |
| 303 | { |