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

Method setProject

kdevplatform/vcs/models/brancheslistmodel.cpp:199–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void BranchesListModel::setProject(KDevelop::IProject* p)
200{
201 if(!p || !p->versionControlPlugin()) {
202 qCDebug(VCS) << "null or invalid project" << p;
203 return;
204 }
205
206 auto* branching = p->versionControlPlugin()->extension<KDevelop::IBranchingVersionControl>();
207 if(branching) {
208 initialize(branching, p->path().toUrl());
209 } else
210 qCDebug(VCS) << "not a branching vcs project" << p->name();
211}
212
213void BranchesListModel::setCurrentBranch(const QString& branch)
214{

Callers

nothing calls this directly

Calls 5

initializeFunction · 0.85
versionControlPluginMethod · 0.80
toUrlMethod · 0.45
pathMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected