forked from qt-creator/qt-creator
Environment: Use Utils::FileName for path() and related methods
Update users accordingly. Change-Id: I9432e82308e9d0630514c6c8632aeb6b6ee0cf90 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -73,12 +73,12 @@ static bool isQmake(const QString &path)
|
||||
FileName BuildableHelperLibrary::findSystemQt(const Environment &env)
|
||||
{
|
||||
const QString qmake = QLatin1String("qmake");
|
||||
QStringList paths = env.path();
|
||||
foreach (const QString &path, paths) {
|
||||
FileNameList paths = env.path();
|
||||
foreach (const FileName &path, paths) {
|
||||
if (path.isEmpty())
|
||||
continue;
|
||||
|
||||
QDir dir(path);
|
||||
QDir dir(path.toString());
|
||||
|
||||
if (dir.exists(qmake)) {
|
||||
const QString qmakePath = dir.absoluteFilePath(qmake);
|
||||
|
||||
Reference in New Issue
Block a user