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

Function directoriesInProject

plugins/grepview/grepdialog.cpp:233–240  ·  view source on GitHub ↗

Check if all directories are part of a project

Source from the content-addressed store, hash-verified

231
232///Check if all directories are part of a project
233bool directoriesInProject(const QString& dir)
234{
235 const auto urls = getDirectoryChoice(dir);
236 return std::all_of(urls.begin(), urls.end(), [&](const QUrl& url) {
237 IProject *proj = ICore::self()->projectController()->findProjectForUrl(url);
238 return (proj && proj->path().toUrl().isLocalFile());
239 });
240}
241
242///Max number of items in paths combo box.
243const int pathsMaxCount = 25;

Callers 2

setLastUsedSettingsMethod · 0.85

Calls 8

getDirectoryChoiceFunction · 0.85
findProjectForUrlMethod · 0.80
projectControllerMethod · 0.80
isLocalFileMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
toUrlMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected