| 262 | } |
| 263 | |
| 264 | QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex& parent) const |
| 265 | { |
| 266 | // no trees here... shoo |
| 267 | if (parent.isValid()) { |
| 268 | return QModelIndex(); |
| 269 | } |
| 270 | if (row < 0 || row >= sourceModel()->rowCount()) |
| 271 | return QModelIndex(); |
| 272 | if (column < 0 || column >= columnCount()) |
| 273 | return QModelIndex(); |
| 274 | return QAbstractItemModel::createIndex(row, column); |
| 275 | } |
| 276 | |
| 277 | int VersionProxyModel::columnCount(const QModelIndex& parent) const |
| 278 | { |
no test coverage detected