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

Method activeProject

plugins/git/committoolview.cpp:253–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253KDevelop::IProject* CommitToolView::activeProject() const
254{
255 auto* proj_item = activeProjectItem();
256 if (proj_item && isActiveProject(proj_item->index())) {
257 return ICore::self()->projectController()->findProjectByName(
258 proj_item->data(RepoStatusModel::NameRole).toString());
259 }
260 return nullptr;
261}
262
263QStandardItem* CommitToolView::activeProjectItem() const
264{

Callers

nothing calls this directly

Calls 5

findProjectByNameMethod · 0.80
projectControllerMethod · 0.80
indexMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected