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

Method urls

kdevplatform/vcs/models/vcsfilechangesmodel.cpp:239–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239QList<QUrl> VcsFileChangesModel::urls(QStandardItem *parent) const
240{
241 Q_ASSERT(parent);
242 if (!parent) {
243 qCWarning(VCS) << "null QStandardItem passed to" << Q_FUNC_INFO;
244 return {};
245 }
246
247 QList<QUrl> ret;
248 const int c = parent->rowCount();
249 ret.reserve(c);
250 for (int i = 0; i < c; i++) {
251 QStandardItem* item = parent->child(i);
252 ret << indexFromItem(item).data(UrlRole).toUrl();
253 }
254 return ret;
255}
256
257void VcsFileChangesModel::checkUrls(QStandardItem *parent, const QList<QUrl>& urls) const
258{

Callers 1

setupFromContextMethod · 0.45

Calls 5

rowCountMethod · 0.45
reserveMethod · 0.45
childMethod · 0.45
toUrlMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected