forked from qt-creator/qt-creator
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:
@@ -221,6 +221,11 @@ QString IDevice::mapToDevicePath(const FilePath &globalPath) const
|
|||||||
return globalPath.path();
|
return globalPath.path();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FilePath IDevice::filePath(const QString &pathOnDevice) const
|
||||||
|
{
|
||||||
|
return mapToGlobalPath(FilePath::fromString(pathOnDevice));
|
||||||
|
}
|
||||||
|
|
||||||
bool IDevice::handlesFile(const FilePath &filePath) const
|
bool IDevice::handlesFile(const FilePath &filePath) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(filePath);
|
Q_UNUSED(filePath);
|
||||||
|
@@ -208,6 +208,7 @@ public:
|
|||||||
void setMachineType(MachineType machineType);
|
void setMachineType(MachineType machineType);
|
||||||
|
|
||||||
Utils::FilePath rootPath() const;
|
Utils::FilePath rootPath() const;
|
||||||
|
Utils::FilePath filePath(const QString &pathOnDevice) const;
|
||||||
|
|
||||||
Utils::FilePath debugServerPath() const;
|
Utils::FilePath debugServerPath() const;
|
||||||
void setDebugServerPath(const Utils::FilePath &path);
|
void setDebugServerPath(const Utils::FilePath &path);
|
||||||
|
Reference in New Issue
Block a user