Utils: Rename FilePath::searchOnDevice to searchInDirectories

Makes it a bit clearer that there's no magic path use or similar
beyond this point.

Change-Id: I86c06850d16bf777db05ad23b540d8096926c059
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-08-09 16:06:45 +02:00
parent be6299a50a
commit a78665ede7
6 changed files with 7 additions and 7 deletions

View File

@@ -188,7 +188,7 @@ void CMakeToolManager::autoDetectCMakeForDevice(const FilePath &deviceRoot,
const FilePaths candidates = {deviceRoot.withNewPath("cmake")};
const Environment env = deviceRoot.deviceEnvironment();
for (const FilePath &candidate : candidates) {
const FilePath cmake = candidate.searchOnDevice(env.path());
const FilePath cmake = candidate.searchInDirectories(env.path());
if (!cmake.isEmpty()) {
registerCMakeByPath(cmake, detectionSource);
messages.append(tr("Found \"%1\"").arg(cmake.toUserOutput()));