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

Method index

plugins/timertop/timermodel.cpp:442–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442QModelIndex TimerModel::index(int row, int column, const QModelIndex &parent) const
443{
444 if (hasIndex(row, column, parent)) {
445 if (row < m_sourceModel->rowCount()) {
446 const QModelIndex sourceIndex = m_sourceModel->index(row, 0);
447 QObject *const timerObject = sourceIndex.data(ObjectModel::ObjectRole).value<QObject *>();
448 return createIndex(row, column, timerObject);
449 }
450 return createIndex(row, column, row - m_sourceModel->rowCount());
451 }
452
453 return {};
454}
455
456int TimerModel::columnCount(const QModelIndex &parent) const
457{

Callers 8

objectSelectedMethod · 0.45
objectSelectedMethod · 0.45
findTimerInfoMethod · 0.45
applyChangesMethod · 0.45
sourceDataChangedMethod · 0.45
objectSelectedMethod · 0.45
triggerActionMethod · 0.45
objectSelectedMethod · 0.45

Calls 2

rowCountMethod · 0.45
dataMethod · 0.45

Tested by 4

objectSelectedMethod · 0.36
objectSelectedMethod · 0.36
triggerActionMethod · 0.36
objectSelectedMethod · 0.36