| 415 | } |
| 416 | |
| 417 | void 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 | |
| 432 | const QList<QStandardItem*> RepoStatusModel::projectRoots() const |
| 433 | { |
nothing calls this directly
no test coverage detected