MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / prepareSearch

Method prepareSearch

src/plugins/project/locator/allprojectfilelocator.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void AllProjectFileLocator::prepareSearch(const QString &searchText)
23{
24 QList<QString> fileList {};
25 auto &ctx = dpfInstance.serviceContext();
26 ProjectService *projectService = ctx.service<ProjectService>(ProjectService::name());
27 if (projectService->getAllProjectInfo) {
28 auto allProject = projectService->getAllProjectInfo();
29 foreach (auto project, allProject) {
30 auto sourceFile = project.sourceFiles();
31 fileList += sourceFile.toList();
32 }
33 }
34 setFileList(fileList);
35 baseFileLocator::prepareSearch(searchText);
36}

Callers

nothing calls this directly

Calls 2

getAllProjectInfoMethod · 0.80
nameFunction · 0.50

Tested by

no test coverage detected