| 255 | } |
| 256 | |
| 257 | QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex& parent) const |
| 258 | { |
| 259 | // no trees here... shoo |
| 260 | if (parent.isValid()) { |
| 261 | return QModelIndex(); |
| 262 | } |
| 263 | if (row < 0 || row >= sourceModel()->rowCount()) |
| 264 | return QModelIndex(); |
| 265 | if (column < 0 || column >= columnCount()) |
| 266 | return QModelIndex(); |
| 267 | return QAbstractItemModel::createIndex(row, column); |
| 268 | } |
| 269 | |
| 270 | int VersionProxyModel::columnCount(const QModelIndex& parent) const |
| 271 | { |
no test coverage detected