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

Method rowCount

core/objectenummodel.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32int ObjectEnumModel::rowCount(const QModelIndex &parent) const
33{
34 if (!parent.isValid())
35 return SuperClass::rowCount(parent);
36 if (parent.parent().isValid() || parent.column() > 0)
37 return 0;
38 const QMetaEnum e = m_metaObject->enumerator(parent.row());
39 return e.keyCount();
40}
41
42int GammaRay::ObjectEnumModel::columnCount(const QModelIndex &parent) const
43{

Callers

nothing calls this directly

Calls 4

columnMethod · 0.80
rowMethod · 0.80
isValidMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected