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

Method checkedUrls

kdevplatform/vcs/models/vcsfilechangesmodel.cpp:219–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219QList<QUrl> VcsFileChangesModel::checkedUrls(QStandardItem *parent) const
220{
221 Q_D(const VcsFileChangesModel);
222
223 Q_ASSERT(parent);
224 if (!parent) {
225 qCWarning(VCS) << "null QStandardItem passed to" << Q_FUNC_INFO;
226 return {};
227 }
228
229 QList<QUrl> ret;
230 for(int i = 0, c = parent->rowCount(); i < c; i++) {
231 QStandardItem* item = parent->child(i);
232 if(!d->allowSelection || item->checkState() == Qt::Checked) {
233 ret << indexFromItem(item).data(UrlRole).toUrl();
234 }
235 }
236 return ret;
237}
238
239QList<QUrl> VcsFileChangesModel::urls(QStandardItem *parent) const
240{

Callers 4

acceptMethod · 0.80
seekFileMethod · 0.80
finishReviewMethod · 0.80
kompareModelChangedMethod · 0.80

Calls 5

checkStateMethod · 0.80
rowCountMethod · 0.45
childMethod · 0.45
toUrlMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected