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

Method data

kdevplatform/vcs/models/vcsfilechangesmodel.cpp:181–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181QVariant VcsFileChangesModel::data(const QModelIndex &index, int role) const
182{
183 if (role >= VcsStatusInfoRole && role < LastItemRole && index.column() == 0) {
184 return QStandardItemModel::data(index.sibling(index.row(), 1), role);
185 }
186 return QStandardItemModel::data(index, role);
187}
188
189QStandardItem* VcsFileChangesModel::fileItemForUrl(QStandardItem* parent, const QUrl& url) const
190{

Callers 5

lessThanMethod · 0.45
fileItemForUrlMethod · 0.45
checkedUrlsMethod · 0.45
urlsMethod · 0.45
checkUrlsMethod · 0.45

Calls 4

siblingMethod · 0.80
dataFunction · 0.50
columnMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected