Utils: Add path search function to environment

In contrast to Environment::searchInPath This function
returns _all_ executables found in the path variable.

Change-Id: Ic62b8f70d0690ff9a3261db3ead2c919a2486c89
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2019-07-09 09:02:02 +02:00
parent b4708181c7
commit 5da5116cb1
2 changed files with 42 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ public:
FilePath searchInPath(const QString &executable,
const FilePathList &additionalDirs = FilePathList(),
const PathFilter &func = PathFilter()) const;
FilePathList findAllInPath(const QString &executable,
const FilePathList &additionalDirs = FilePathList(),
const PathFilter &func = PathFilter()) const;
FilePathList path() const;
FilePathList pathListValue(const QString &varName) const;