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

Method rowCount

plugins/quickinspector/quickitemmodel.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71int QuickItemModel::rowCount(const QModelIndex &parent) const
72{
73 if (parent.column() == 1)
74 return 0;
75
76 QQuickItem *parentItem = reinterpret_cast<QQuickItem *>(parent.internalPointer());
77
78 return m_parentChildMap.value(parentItem).size();
79}
80
81QModelIndex QuickItemModel::parent(const QModelIndex &child) const
82{

Callers 3

setSlowModeMethod · 0.45
itemModelRowsInsertedMethod · 0.45
sgModelRowsInsertedMethod · 0.45

Calls 3

columnMethod · 0.80
sizeMethod · 0.45
valueMethod · 0.45

Tested by 1

setSlowModeMethod · 0.36