diff options
author | Marcus Tillmanns <[email protected]> | 2023-10-04 10:00:28 +0200 |
---|---|---|
committer | Marcus Tillmanns <[email protected]> | 2023-10-04 12:34:10 +0000 |
commit | c50f9a927343bd5645330e5641e7ded9308f6b57 (patch) | |
tree | 1f5512ae2b8a50f4d2330de33c6ee39e9e29de3b /src/plugins/docker | |
parent | c999f4f8803159d714272e8c563aafa7b49c137c (diff) |
Docker: Move rootPath into Settings
Change-Id: I11aa1d928281b13ccb136b907c9eb8f98582fd28
Reviewed-by: <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/docker')
-rw-r--r-- | src/plugins/docker/dockerdevice.cpp | 7 | ||||
-rw-r--r-- | src/plugins/docker/dockerdevice.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index d30dbcc107c..b8c3fe47d89 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -261,6 +261,11 @@ QString DockerDeviceSettings::repoAndTagEncoded() const return repoAndTag().replace(':', '.'); } +FilePath DockerDeviceSettings::rootPath() const +{ + return FilePath::fromParts(Constants::DOCKER_DEVICE_SCHEME, repoAndTagEncoded(), u"/"); +} + class DockerDevicePrivate : public QObject { public: @@ -959,7 +964,7 @@ FilePath DockerDevice::filePath(const QString &pathOnDevice) const FilePath DockerDevice::rootPath() const { - return FilePath::fromParts(Constants::DOCKER_DEVICE_SCHEME, d->repoAndTagEncoded(), u"/"); + return d->deviceSettings->rootPath(); } bool DockerDevice::handlesFile(const FilePath &filePath) const diff --git a/src/plugins/docker/dockerdevice.h b/src/plugins/docker/dockerdevice.h index 7c170182160..477de04168a 100644 --- a/src/plugins/docker/dockerdevice.h +++ b/src/plugins/docker/dockerdevice.h @@ -23,6 +23,7 @@ public: QString repoAndTag() const; QString repoAndTagEncoded() const; + Utils::FilePath rootPath() const; Utils::StringAspect imageId{this}; Utils::StringAspect repo{this}; |