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

Method jobPerCurrent

kdevplatform/shell/projectsourcepage.cpp:157–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157VcsJob* ProjectSourcePage::jobPerCurrent()
158{
159 QUrl url=m_ui->workingDir->url();
160 IPlugin* p=m_plugins[m_ui->sources->currentIndex()];
161 VcsJob* job=nullptr;
162
163 if(auto* iface=p->extension<IBasicVersionControl>()) {
164 Q_ASSERT(iface && m_locationWidget);
165 job=iface->createWorkingCopy(m_locationWidget->location(), url);
166 } else if(m_providerWidget) {
167 job=m_providerWidget->createWorkingCopy(url);
168 }
169 return job;
170}
171
172void ProjectSourcePage::checkoutVcsProject()
173{

Callers

nothing calls this directly

Calls 4

urlMethod · 0.45
currentIndexMethod · 0.45
createWorkingCopyMethod · 0.45
locationMethod · 0.45

Tested by

no test coverage detected