aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-07-07 19:06:03 +0200
committerhjk <hjk@qt.io>2023-07-11 11:48:21 +0000
commitcf7b2fb822b1f992dbc29bb743313bb73e488ec7 (patch)
treeb4c32131614f221b401a5a6adbea2178f06ea49a
parentabf2234e4fcd99a8955c2ebfeee8c98460d942ff (diff)
RemoteLinux: Add auto-registration ability to RemoteLinuxEnvironmentAspect
Change-Id: Ifec10445427c2f8125c29cdb4db44d45a99e6453 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp3
-rw-r--r--src/plugins/remotelinux/remotelinuxenvironmentaspect.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp b/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp
index e658f295521..d2c19e29613 100644
--- a/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp
+++ b/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp
@@ -72,7 +72,8 @@ static bool displayAlreadySet(const Utils::EnvironmentItems &changes)
});
}
-RemoteLinuxEnvironmentAspect::RemoteLinuxEnvironmentAspect()
+RemoteLinuxEnvironmentAspect::RemoteLinuxEnvironmentAspect(AspectContainer *container)
+ : EnvironmentAspect(container)
{
addSupportedBaseEnvironment(Tr::tr("Clean Environment"), {});
addPreferredBaseEnvironment(Tr::tr("System Environment"), [this] { return m_remoteEnvironment; });
diff --git a/src/plugins/remotelinux/remotelinuxenvironmentaspect.h b/src/plugins/remotelinux/remotelinuxenvironmentaspect.h
index e85c51ac70f..9041f68c5c6 100644
--- a/src/plugins/remotelinux/remotelinuxenvironmentaspect.h
+++ b/src/plugins/remotelinux/remotelinuxenvironmentaspect.h
@@ -14,7 +14,7 @@ class REMOTELINUX_EXPORT RemoteLinuxEnvironmentAspect : public ProjectExplorer::
Q_OBJECT
public:
- RemoteLinuxEnvironmentAspect();
+ explicit RemoteLinuxEnvironmentAspect(Utils::AspectContainer *container = nullptr);
void setRemoteEnvironment(const Utils::Environment &env);