forked from qt-creator/qt-creator
Utils: Introduce FilePath::operator/(const QString &)
Including some random uses. This mimics std::filesystem::operator/(std::filesystem::path). Change-Id: I0b0f5cf0d962fd33d4cbb9be96645a0b4a21ee03 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -73,7 +73,7 @@ static inline QString detectApp(const char *defaultExe)
|
||||
const QStringList entries = dir.entryList({"mingw*"});
|
||||
if (entries.isEmpty())
|
||||
return QString();
|
||||
path = path.pathAppended(entries.first()).pathAppended("bin").pathAppended(defaultApp);
|
||||
path = path / entries.first() / "bin" / defaultApp;
|
||||
if (path.exists())
|
||||
return path.toString();
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user