MCPcopy Create free account
hub / github.com/KDE/kdevelop / rowCount

Method rowCount

kdevplatform/debugger/framestack/framestackmodel.cpp:248–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248int FrameStackModel::rowCount(const QModelIndex& parent) const
249{
250 Q_D(const FrameStackModel);
251
252 if (!parent.isValid()) {
253 return d->m_threads.count();
254 } else if (!parent.internalId() && parent.column() == 0) {
255 if (parent.row() < d->m_threads.count()) {
256 return d->m_frames[d->m_threads.at(parent.row()).nr].count();
257 }
258 }
259 return 0;
260}
261
262QModelIndex FrameStackModel::parent(const QModelIndex& child) const
263{

Callers 1

currentThreadChangedMethod · 0.45

Calls 5

isValidMethod · 0.45
countMethod · 0.45
columnMethod · 0.45
rowMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected