MCPcopy Create free account
hub / github.com/KDAB/GammaRay / parent

Method parent

core/objectenummodel.cpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94QModelIndex 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}

Callers 2

rowCountMethod · 0.45
dataMethod · 0.45

Calls 2

QModelIndexClass · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected