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

Method jobUnregistered

kdevplatform/project/projectchangesmodel.cpp:279–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void ProjectChangesModel::jobUnregistered(KJob* job)
280{
281 static const std::array<VcsJob::JobType, 7> readOnly = {
282 KDevelop::VcsJob::Add,
283 KDevelop::VcsJob::Remove,
284 KDevelop::VcsJob::Pull,
285 KDevelop::VcsJob::Commit,
286 KDevelop::VcsJob::Move,
287 KDevelop::VcsJob::Copy,
288 KDevelop::VcsJob::Revert,
289 };
290
291 auto* vcsjob = qobject_cast<VcsJob*>(job);
292 if (vcsjob && std::find(readOnly.begin(), readOnly.end(), vcsjob->type()) != readOnly.end()) {
293 reloadAll();
294 }
295}
296
297void ProjectChangesModel::repositoryBranchChanged(const QUrl& url)
298{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected