ProjectExplorer: create a root path without scheme for host device

Change-Id: I966db6378dca533c73635803fb177d31b2c625ac
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
David Schulz
2022-11-17 10:06:19 +01:00
parent 74d915d6aa
commit 895f88f63a
3 changed files with 10 additions and 0 deletions

View File

@@ -150,4 +150,11 @@ Environment DesktopDevice::systemEnvironment() const
return Environment::systemEnvironment();
}
FilePath DesktopDevice::rootPath() const
{
if (id() == DESKTOP_DEVICE_ID)
return FilePath::fromParts({}, {}, QDir::rootPath());
return IDevice::rootPath();
}
} // namespace ProjectExplorer

View File

@@ -36,6 +36,8 @@ public:
Utils::Environment systemEnvironment() const override;
Utils::FilePath mapToGlobalPath(const Utils::FilePath &pathOnDevice) const override;
Utils::FilePath rootPath() const override;
protected:
DesktopDevice();