forked from qt-creator/qt-creator
ProjectExplorer: Make the DesktopDevice responsible for local accesses
Change-Id: I92337d9acec25e6e72d367c14ca0d85827c570c2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -173,4 +173,9 @@ QUrl DesktopDevice::toolControlChannel(const ControlChannelHint &) const
|
|||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool DesktopDevice::handlesFile(const FilePath &filePath) const
|
||||||
|
{
|
||||||
|
return !filePath.needsDevice();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace ProjectExplorer
|
} // namespace ProjectExplorer
|
||||||
|
@@ -54,6 +54,7 @@ public:
|
|||||||
DeviceProcessSignalOperation::Ptr signalOperation() const override;
|
DeviceProcessSignalOperation::Ptr signalOperation() const override;
|
||||||
DeviceEnvironmentFetcher::Ptr environmentFetcher() const override;
|
DeviceEnvironmentFetcher::Ptr environmentFetcher() const override;
|
||||||
QUrl toolControlChannel(const ControlChannelHint &) const override;
|
QUrl toolControlChannel(const ControlChannelHint &) const override;
|
||||||
|
bool handlesFile(const Utils::FilePath &filePath) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DesktopDevice();
|
DesktopDevice();
|
||||||
|
Reference in New Issue
Block a user