aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshremoteprocess.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-11-22 10:22:48 +0100
committerhjk <hjk@qt.io>2021-12-06 15:30:00 +0000
commit8cb5c3cfdd07f98449d3df0a676c5026c33f6b7a (patch)
tree1c26db7bf103a9cbe58128ed449c81b43d38e8d9 /src/libs/ssh/sshremoteprocess.cpp
parente64ce914f98f7f69cdfca93f675bee2edd566c2d (diff)
Ssh: Use base QtcProcess' useTerminal for SshRemoteProcess
Still trying to ramp down non-QtcProcess interfaces. Change-Id: I6b4ae6788f5021959ff3eb35bbade2157a6d67fa Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/libs/ssh/sshremoteprocess.cpp')
-rw-r--r--src/libs/ssh/sshremoteprocess.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libs/ssh/sshremoteprocess.cpp b/src/libs/ssh/sshremoteprocess.cpp
index 53f1e40431b..d310b39851e 100644
--- a/src/libs/ssh/sshremoteprocess.cpp
+++ b/src/libs/ssh/sshremoteprocess.cpp
@@ -57,7 +57,6 @@ struct SshRemoteProcess::SshRemoteProcessPrivate
QString remoteCommand;
QStringList connectionArgs;
QString displayName;
- bool useTerminal = false;
};
SshRemoteProcess::SshRemoteProcess(const QString &command, const QStringList &connectionArgs,
@@ -101,11 +100,6 @@ SshRemoteProcess::~SshRemoteProcess()
delete d;
}
-void SshRemoteProcess::requestTerminal()
-{
- d->useTerminal = true;
-}
-
void SshRemoteProcess::requestX11Forwarding(const QString &displayName)
{
d->displayName = displayName;
@@ -122,7 +116,7 @@ Utils::CommandLine SshRemoteProcess::fullLocalCommandLine() const
if (!d->displayName.isEmpty())
cmd.addArg("-X");
- if (d->useTerminal)
+ if (useTerminal())
cmd.addArg("-tt");
cmd.addArg("-q");