diff options
author | Montel Laurent <laurent.montel@kdab.com> | 2015-02-04 10:11:46 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-02-04 14:48:17 +0000 |
commit | 6a4d6efb3b69f3a5ffc314b4919fcffd52e30113 (patch) | |
tree | bbf89cf392b501d85f80cc8caaafc24604fca9cd /src/libs/ssh/sshremoteprocess.cpp | |
parent | 380acb5baa375806af0a081b56d6d1dccd87264f (diff) |
Port to new connect api
Change-Id: I84834f37dd15108ed8c5fbf5353bcabc4e564f70
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/libs/ssh/sshremoteprocess.cpp')
-rw-r--r-- | src/libs/ssh/sshremoteprocess.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/libs/ssh/sshremoteprocess.cpp b/src/libs/ssh/sshremoteprocess.cpp index 84b918d96f..42b4e40a9f 100644 --- a/src/libs/ssh/sshremoteprocess.cpp +++ b/src/libs/ssh/sshremoteprocess.cpp @@ -160,15 +160,18 @@ void SshRemoteProcess::setReadChannel(QProcess::ProcessChannel channel) void SshRemoteProcess::init() { - connect(d, SIGNAL(started()), this, SIGNAL(started()), - Qt::QueuedConnection); - connect(d, SIGNAL(readyReadStandardOutput()), this, SIGNAL(readyReadStandardOutput()), - Qt::QueuedConnection); - connect(d, SIGNAL(readyRead()), this, SIGNAL(readyRead()), Qt::QueuedConnection); - connect(d, SIGNAL(readyReadStandardError()), this, - SIGNAL(readyReadStandardError()), Qt::QueuedConnection); - connect(d, SIGNAL(closed(int)), this, SIGNAL(closed(int)), Qt::QueuedConnection); - connect(d, SIGNAL(eof()), SIGNAL(readChannelFinished()), Qt::QueuedConnection); + connect(d, &Internal::SshRemoteProcessPrivate::started, + this, &SshRemoteProcess::started, Qt::QueuedConnection); + connect(d, &Internal::SshRemoteProcessPrivate::readyReadStandardOutput, + this, &SshRemoteProcess::readyReadStandardOutput, Qt::QueuedConnection); + connect(d, &Internal::SshRemoteProcessPrivate::readyRead, + this, &SshRemoteProcess::readyRead, Qt::QueuedConnection); + connect(d, &Internal::SshRemoteProcessPrivate::readyReadStandardError, + this, &SshRemoteProcess::readyReadStandardError, Qt::QueuedConnection); + connect(d, &Internal::SshRemoteProcessPrivate::closed, + this, &SshRemoteProcess::closed, Qt::QueuedConnection); + connect(d, &Internal::SshRemoteProcessPrivate::eof, + this, &SshRemoteProcess::readChannelFinished, Qt::QueuedConnection); } void SshRemoteProcess::addToEnvironment(const QByteArray &var, const QByteArray &value) |