aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-04-04 13:17:36 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-04-04 13:28:12 +0000
commitab11c4373b53953915cb6886356172a991660b8f (patch)
treeae0554f29e103a7523f7f46ea63da5bb6c1d6a11 /src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp
parentd950eb498fc1f0ef77e82180a4e009eb56ba8ccd (diff)
QtcProcess: Introduce done() signal
Introduce QtcProcess::done() signal. It's similar to QtcProcess::finished() signal, but also emitted when process failed to start (so after QProcess::FailedToStart error occurred). SshRemoteProcess::finished() signal was already behaving like this. So, we remove special handling of FailedToStart error in this class and connect all clients of SshRemoteProcess to done() signal, instead of finished(). Task-number: QTCREATORBUG-27232 Change-Id: If4240e2172f3f706e812bca669a1d5b24bdc3285 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp')
-rw-r--r--src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp b/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp
index 689ee1b398..8d9c44b5e3 100644
--- a/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp
+++ b/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp
@@ -197,14 +197,14 @@ void SshDeviceProcess::handleConnected()
setCommand(d->remoteProcess->fullLocalCommandLine(true));
QtcProcess::start();
} else {
- connect(d->remoteProcess.get(), &QSsh::SshRemoteProcess::started,
+ connect(d->remoteProcess.get(), &QtcProcess::started,
this, &SshDeviceProcess::handleProcessStarted);
- connect(d->remoteProcess.get(), &QSsh::SshRemoteProcess::finished, this, [this] {
+ connect(d->remoteProcess.get(), &QtcProcess::done, this, [this] {
handleProcessFinished(d->remoteProcess->errorString());
});
- connect(d->remoteProcess.get(), &QSsh::SshRemoteProcess::readyReadStandardOutput,
+ connect(d->remoteProcess.get(), &QtcProcess::readyReadStandardOutput,
this, &QtcProcess::readyReadStandardOutput);
- connect(d->remoteProcess.get(), &QSsh::SshRemoteProcess::readyReadStandardError,
+ connect(d->remoteProcess.get(), &QtcProcess::readyReadStandardError,
this, &QtcProcess::readyReadStandardError);
d->remoteProcess->start();
}