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