forked from qt-creator/qt-creator
Utils: Make MacroExpander work with remote file names
Change-Id: I2c71c9f7c6ac3523f640e3c57267090444032973 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -292,6 +292,11 @@ QString MacroExpander::expand(const QString &stringWithVariables) const
|
||||
|
||||
FilePath MacroExpander::expand(const FilePath &fileNameWithVariables) const
|
||||
{
|
||||
if (fileNameWithVariables.needsDevice()) {
|
||||
QUrl url = fileNameWithVariables.toUrl();
|
||||
url.setPath(expand(url.path()));
|
||||
return FilePath::fromUrl(url);
|
||||
}
|
||||
return FilePath::fromString(expand(fileNameWithVariables.toString()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user