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

Method eventForIndex

kdevplatform/vcs/models/vcseventmodel.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113KDevelop::VcsEvent VcsBasicEventModel::eventForIndex(const QModelIndex& idx) const
114{
115 Q_D(const VcsBasicEventModel);
116
117 if( !idx.isValid() || idx.row() < 0 || idx.row() >= rowCount() )
118 {
119 return KDevelop::VcsEvent();
120 }
121 return d->m_events.at( idx.row() );
122}
123
124class VcsEventLogModelPrivate
125{

Callers 3

eventViewClickedMethod · 0.80
diffToPreviousMethod · 0.80
diffRevisionsMethod · 0.80

Calls 4

VcsEventClass · 0.70
isValidMethod · 0.45
rowMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected