| 85 | } |
| 86 | |
| 87 | QModelIndex GammaRay::ObjectEnumModel::index(int row, int column, const QModelIndex &parent) const |
| 88 | { |
| 89 | if (!parent.isValid()) |
| 90 | return SuperClass::index(row, column, parent); |
| 91 | return createIndex(row, column, parent.row()); |
| 92 | } |
| 93 | |
| 94 | QModelIndex GammaRay::ObjectEnumModel::parent(const QModelIndex &child) const |
| 95 | { |