| 281 | } |
| 282 | |
| 283 | void VersionProxyModel::sourceDataChanged(const QModelIndex& source_top_left, const QModelIndex& source_bottom_right) |
| 284 | { |
| 285 | if (source_top_left.parent() != source_bottom_right.parent()) |
| 286 | return; |
| 287 | |
| 288 | // whole row is getting changed |
| 289 | auto topLeft = createIndex(source_top_left.row(), 0); |
| 290 | auto bottomRight = createIndex(source_bottom_right.row(), columnCount() - 1); |
| 291 | emit dataChanged(topLeft, bottomRight); |
| 292 | } |
| 293 | |
| 294 | void VersionProxyModel::setSourceModel(QAbstractItemModel* replacingRaw) |
| 295 | { |