| 20 | } |
| 21 | |
| 22 | void 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 | } |
nothing calls this directly
no test coverage detected