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

Method fetchStatusesForUrls

plugins/git/repostatusmodel.cpp:417–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void RepoStatusModel::fetchStatusesForUrls(IProject* project, const QList<QUrl>& urls,
418 IBasicVersionControl::RecursionMode mode)
419{
420 IPlugin* vcsplugin = project->versionControlPlugin();
421
422 if (auto* vcs = vcsplugin ? vcsplugin->extension<IBasicVersionControl>() : nullptr) {
423 VcsJob* job = vcs->status(urls, mode);
424 job->setProperty("urls", QVariant::fromValue<QList<QUrl>>(urls));
425 job->setProperty("mode", QVariant::fromValue<int>(mode));
426 job->setProperty("project", QVariant::fromValue(project));
427 connect(job, &VcsJob::finished, this, &RepoStatusModel::statusReady);
428 ICore::self()->runController()->registerJob(job);
429 }
430}
431
432const QList<QStandardItem*> RepoStatusModel::projectRoots() const
433{

Callers

nothing calls this directly

Calls 5

versionControlPluginMethod · 0.80
setPropertyMethod · 0.80
registerJobMethod · 0.80
runControllerMethod · 0.80
statusMethod · 0.45

Tested by

no test coverage detected