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

Method findProjectForUrl

kdevplatform/shell/projectcontroller.cpp:1093–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093IProject* ProjectController::findProjectForUrl( const QUrl& url ) const
1094{
1095 Q_D(const ProjectController);
1096
1097 if (d->m_projects.isEmpty()) {
1098 return nullptr;
1099 }
1100
1101 const auto* const item = d->model->itemForPath(IndexedStringView{url});
1102 if (item) {
1103 return item->project();
1104 }
1105 return nullptr;
1106}
1107
1108IProject* ProjectController::findProjectByName( const QString& name )
1109{

Callers 15

configForUrlFunction · 0.80
openProjectForUrlSlotMethod · 0.80
prettyFilePathMethod · 0.80
prettyFileNameMethod · 0.80
commitCurrentProjectMethod · 0.80
colorForDocumentFunction · 0.80
reloadMethod · 0.80
shouldRespectFileMethod · 0.80

Calls 3

itemForPathMethod · 0.80
isEmptyMethod · 0.45
projectMethod · 0.45

Tested by 3

runClangTidyMethod · 0.64
runClangTidyMethod · 0.64