diff options
author | hjk <hjk@theqtcompany.com> | 2016-03-22 09:33:43 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-03-22 13:41:39 +0000 |
commit | 75bbd73b843b01c64314bbdc058ed7e366e2408d (patch) | |
tree | 0bebba306e0fc0134328d5919d7175ef50e62b9f /src/plugins/remotelinux/remotelinuxsignaloperation.cpp | |
parent | 47f5c1357328ff906a14affffa19def9f59eed6a (diff) |
RemoteLinux: Modernize remotelinuxsignaloperation.{h,cpp}
Qt 5 connects and override.
Change-Id: I9675f7e6592fe5679da341a5b23d1b80b551e736
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxsignaloperation.cpp')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxsignaloperation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/remotelinux/remotelinuxsignaloperation.cpp b/src/plugins/remotelinux/remotelinuxsignaloperation.cpp index 3191ca96f3..446a83448e 100644 --- a/src/plugins/remotelinux/remotelinuxsignaloperation.cpp +++ b/src/plugins/remotelinux/remotelinuxsignaloperation.cpp @@ -58,8 +58,10 @@ void RemoteLinuxSignalOperation::run(const QString &command) { QTC_ASSERT(!m_runner, return); m_runner = new QSsh::SshRemoteProcessRunner(); - connect(m_runner, SIGNAL(processClosed(int)), SLOT(runnerProcessFinished())); - connect(m_runner, SIGNAL(connectionError()), SLOT(runnerConnectionError())); + connect(m_runner, &QSsh::SshRemoteProcessRunner::processClosed, + this, &RemoteLinuxSignalOperation::runnerProcessFinished); + connect(m_runner, &QSsh::SshRemoteProcessRunner::connectionError, + this, &RemoteLinuxSignalOperation::runnerConnectionError); m_runner->run(command.toLatin1(), m_sshParameters); } |