forked from qt-creator/qt-creator
Utils: Add PathFilter to FilePath::searchInPath
Change-Id: Iccbecc7401f17208487113f89e49ed7103acf9d6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -214,9 +214,10 @@ static FilePath searchInDirectoriesHelper(const Environment &env,
|
||||
}
|
||||
|
||||
FilePath Environment::searchInDirectories(const QString &executable,
|
||||
const FilePaths &dirs) const
|
||||
const FilePaths &dirs,
|
||||
const PathFilter &func) const
|
||||
{
|
||||
return searchInDirectoriesHelper(*this, executable, dirs, {}, false);
|
||||
return searchInDirectoriesHelper(*this, executable, dirs, func, false);
|
||||
}
|
||||
|
||||
FilePath Environment::searchInPath(const QString &executable,
|
||||
|
||||
Reference in New Issue
Block a user