summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-04 13:41:09 +0200
committerMontel Laurent <[email protected]>2017-10-04 13:41:09 +0200
commit11c7078234cdd4319f38c19a0e4f4356830cdf62 (patch)
treec897813a0b9470f8fad7eb02b4e765f9437ab0a0
parentaf0220395e03f7e6126b4ade0397a5319d609608 (diff)
Port to new connect api
-rw-r--r--kmailtransport/sendmail/sendmailjob.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/kmailtransport/sendmail/sendmailjob.cpp b/kmailtransport/sendmail/sendmailjob.cpp
index 0e9fbb8..f2bce78 100644
--- a/kmailtransport/sendmail/sendmailjob.cpp
+++ b/kmailtransport/sendmail/sendmailjob.cpp
@@ -35,13 +35,10 @@ SendmailJob::SendmailJob(Transport *transport, QObject *parent)
: TransportJob(transport, parent)
{
mProcess = new QProcess(this);
- connect(mProcess,
- SIGNAL(finished(int,QProcess::ExitStatus)),
- SLOT(sendmailExited(int,QProcess::ExitStatus)));
- connect(mProcess, SIGNAL(error(QProcess::ProcessError)),
- SLOT(receivedError()));
- connect(mProcess, SIGNAL(readyReadStandardError()),
- SLOT(receivedStdErr()));
+ connect(mProcess, QOverload<int,QProcess::ExitStatus>::of(&QProcess::finished), this, &SendmailJob::sendmailExited);
+ connect(mProcess, QOverload<QProcess::ProcessError>::of(&QProcess::error),
+ this, &SendmailJob::receivedError);
+ connect(mProcess, &QProcess::readyReadStandardError, this, &SendmailJob::receivedStdErr);
}
SendmailJob::~SendmailJob()