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

Method revisionForLine

kdevplatform/vcs/models/vcsannotationmodel.cpp:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162VcsRevision VcsAnnotationModel::revisionForLine( int line ) const
163{
164 Q_D(const VcsAnnotationModel);
165
166 ///FIXME: update the annotation bar on edit/reload somehow
167 ///BUG: https://bugs.kde.org/show_bug.cgi?id=269757
168 if (!d->m_annotation.containsLine(line)) {
169 return VcsRevision();
170 }
171
172 Q_ASSERT(line >= 0 && d->m_annotation.containsLine(line));
173 return d->m_annotation.line( line ).revision();
174}
175
176VcsAnnotationLine VcsAnnotationModel::annotationLine(int line) const
177{

Callers 1

Calls 4

containsLineMethod · 0.80
VcsRevisionClass · 0.70
revisionMethod · 0.45
lineMethod · 0.45

Tested by

no test coverage detected