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

Method changes

kdevplatform/project/projectchangesmodel.cpp:136–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void ProjectChangesModel::changes(IProject* project, const QList<QUrl>& urls, IBasicVersionControl::RecursionMode mode)
137{
138 IPlugin* vcsplugin=project->versionControlPlugin();
139 IBasicVersionControl* vcs = vcsplugin ? vcsplugin->extension<IBasicVersionControl>() : nullptr;
140
141 if(vcs && vcs->isVersionControlled(urls.first())) { //TODO: filter?
142 VcsJob* job=vcs->status(urls, mode);
143 job->setProperty("urls", QVariant::fromValue<QList<QUrl>>(urls));
144 job->setProperty("mode", QVariant::fromValue<int>(mode));
145 job->setProperty("project", QVariant::fromValue(project));
146 connect(job, &VcsJob::finished, this, &ProjectChangesModel::statusReady);
147
148 ICore::self()->runController()->registerJob(job);
149 }
150}
151
152void ProjectChangesModel::statusReady(KJob* job)
153{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected