| 92 | } |
| 93 | |
| 94 | QModelIndex GammaRay::ObjectEnumModel::parent(const QModelIndex &child) const |
| 95 | { |
| 96 | if (!child.isValid()) |
| 97 | return {}; |
| 98 | if (static_cast<qintptr>(child.internalId()) == -1) |
| 99 | return SuperClass::parent(child); |
| 100 | return SuperClass::index(child.internalId(), 0, QModelIndex()); |
| 101 | } |
no test coverage detected