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

Method statusIndexForUrl

kdevplatform/vcs/models/vcsfilechangesmodel.cpp:126–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124};
125
126QModelIndex VcsFileChangesModel::statusIndexForUrl(const QAbstractItemModel& model, const QModelIndex& parent,
127 const QUrl& url)
128{
129 return model.match(model.index(0, StatusColumn, parent), UrlRole, url, 1, Qt::MatchExactly).value(0);
130}
131
132VcsFileChangesModel::VcsFileChangesModel(QObject *parent, bool allowSelection)
133 : QStandardItemModel(parent)

Callers

nothing calls this directly

Calls 3

valueMethod · 0.45
matchMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected