forked from qt-creator/qt-creator
RemoteLinux: Add auto-registration ability to RemoteLinuxEnvironmentAspect
Change-Id: Ifec10445427c2f8125c29cdb4db44d45a99e6453 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -72,7 +72,8 @@ static bool displayAlreadySet(const Utils::EnvironmentItems &changes)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteLinuxEnvironmentAspect::RemoteLinuxEnvironmentAspect()
|
RemoteLinuxEnvironmentAspect::RemoteLinuxEnvironmentAspect(AspectContainer *container)
|
||||||
|
: EnvironmentAspect(container)
|
||||||
{
|
{
|
||||||
addSupportedBaseEnvironment(Tr::tr("Clean Environment"), {});
|
addSupportedBaseEnvironment(Tr::tr("Clean Environment"), {});
|
||||||
addPreferredBaseEnvironment(Tr::tr("System Environment"), [this] { return m_remoteEnvironment; });
|
addPreferredBaseEnvironment(Tr::tr("System Environment"), [this] { return m_remoteEnvironment; });
|
||||||
|
@@ -14,7 +14,7 @@ class REMOTELINUX_EXPORT RemoteLinuxEnvironmentAspect : public ProjectExplorer::
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RemoteLinuxEnvironmentAspect();
|
explicit RemoteLinuxEnvironmentAspect(Utils::AspectContainer *container = nullptr);
|
||||||
|
|
||||||
void setRemoteEnvironment(const Utils::Environment &env);
|
void setRemoteEnvironment(const Utils::Environment &env);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user