Commit 11c70782 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent af022039
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment