| 298 | } |
| 299 | |
| 300 | QModelIndex VersionProxyModel::index(int row, int column, const QModelIndex &parent) const |
| 301 | { |
| 302 | // no trees here... shoo |
| 303 | if(parent.isValid()) |
| 304 | { |
| 305 | return QModelIndex(); |
| 306 | } |
| 307 | if(row < 0 || row >= sourceModel()->rowCount()) |
| 308 | return QModelIndex(); |
| 309 | if(column < 0 || column >= columnCount()) |
| 310 | return QModelIndex(); |
| 311 | return QAbstractItemModel::createIndex(row, column); |
| 312 | } |
| 313 | |
| 314 | int VersionProxyModel::columnCount(const QModelIndex &parent) const |
| 315 | { |
no test coverage detected