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