Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3f113cae authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent bed83646
......@@ -41,7 +41,7 @@ GpgME::VerificationResult QGpgMEJobExecutor::exec(
QGpgME::VerifyDetachedJob *job, const QByteArray &signature, const QByteArray &signedData)
{
qCDebug(MIMETREEPARSER_LOG) << "Starting detached verification job";
connect(job, SIGNAL(result(GpgME::VerificationResult)), SLOT(verificationResult(GpgME::VerificationResult)));
connect(job, &QGpgME::VerifyDetachedJob::result, this, QOverload<const GpgME::VerificationResult &>::of(&QGpgMEJobExecutor::verificationResult));
GpgME::Error err = job->start(signature, signedData);
if (err) {
return VerificationResult(err);
......@@ -54,7 +54,7 @@ GpgME::VerificationResult QGpgMEJobExecutor::exec(
QGpgME::VerifyOpaqueJob *job, const QByteArray &signedData, QByteArray &plainText)
{
qCDebug(MIMETREEPARSER_LOG) << "Starting opaque verification job";
connect(job, SIGNAL(result(GpgME::VerificationResult,QByteArray)), SLOT(verificationResult(GpgME::VerificationResult,QByteArray)));
connect(job, &QGpgME::VerifyOpaqueJob::result, this, QOverload<const GpgME::VerificationResult &, const QByteArray &>::of(&QGpgMEJobExecutor::verificationResult ));
GpgME::Error err = job->start(signedData);
if (err) {
plainText.clear();
......
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