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

Method rowCount

core/tools/objectinspector/bindingmodel.cpp:151–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151int BindingModel::rowCount(const QModelIndex &parent) const
152{
153 if (!m_bindings)
154 return 0;
155 if (!parent.isValid())
156 return m_bindings->size();
157 if (parent.column() != 0)
158 return 0;
159 return static_cast<BindingNode *>(parent.internalPointer())->dependencies().size();
160}
161
162QVariant BindingModel::data(const QModelIndex &index, int role) const
163{

Callers 5

setQObjectMethod · 0.45
setMetaObjectMethod · 0.45
setQObjectMethod · 0.45
setMetaObjectMethod · 0.45
setQObjectMethod · 0.45

Calls 4

columnMethod · 0.80
dependenciesMethod · 0.80
isValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected