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

Function findProjectForForPath

plugins/quickopen/projectitemquickopen.cpp:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103};
104
105Path findProjectForForPath(const IndexedString& path)
106{
107 const auto model = ICore::self()->projectController()->projectModel();
108 const auto item = model->itemForPath(IndexedStringView::fromString(path));
109 return item ? item->project()->path() : Path();
110}
111uint addedItems(const AddedItems& items)
112{
113 uint add = 0;

Callers 1

dataMethod · 0.85

Calls 6

projectControllerMethod · 0.80
itemForPathMethod · 0.80
PathClass · 0.50
projectModelMethod · 0.45
pathMethod · 0.45
projectMethod · 0.45

Tested by

no test coverage detected