ProjectExplorer: Fix Introduce IDevice::filePath()

Amends 1ffaf0139a.

This is the actual introduction that got merged into the wrong patch.

Change-Id: I836a214358bd6000eaf506ee7d1fed8ad178daa3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-05-10 12:53:27 +02:00
parent aa98a479cf
commit e99fa02913
2 changed files with 6 additions and 0 deletions

View File

@@ -221,6 +221,11 @@ QString IDevice::mapToDevicePath(const FilePath &globalPath) const
return globalPath.path();
}
FilePath IDevice::filePath(const QString &pathOnDevice) const
{
return mapToGlobalPath(FilePath::fromString(pathOnDevice));
}
bool IDevice::handlesFile(const FilePath &filePath) const
{
Q_UNUSED(filePath);

View File

@@ -208,6 +208,7 @@ public:
void setMachineType(MachineType machineType);
Utils::FilePath rootPath() const;
Utils::FilePath filePath(const QString &pathOnDevice) const;
Utils::FilePath debugServerPath() const;
void setDebugServerPath(const Utils::FilePath &path);