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 3e722ad3 authored by Laurent Montel's avatar Laurent Montel 😁

Use new connect api

parent 0f580b4a
......@@ -112,7 +112,7 @@ AttachmentCompressJob::~AttachmentCompressJob()
void AttachmentCompressJob::start()
{
QTimer::singleShot(0, this, SLOT(doStart()));
QTimer::singleShot(0, this, [this]() { d->doStart(); });
}
const AttachmentPart::Ptr AttachmentCompressJob::originalPart() const
......
......@@ -81,8 +81,6 @@ private:
//@cond PRIVATE
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void doStart())
//@endcond
};
}
......
......@@ -127,8 +127,6 @@ View::View(Widget *pParent)
connect(d->mModel, &Model::statusMessage,
pParent, &Widget::statusMessage);
//connect( selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
// this, SLOT(slotCurrentIndexChanged(QModelIndex,QModelIndex)) );
connect(selectionModel(), &QItemSelectionModel::selectionChanged,
this, &View::slotSelectionChanged,
Qt::UniqueConnection);
......
......@@ -64,7 +64,7 @@ MarkMessageReadHandler::MarkMessageReadHandler(QObject *parent)
, d(new Private(this))
{
d->mTimer.setSingleShot(true);
connect(&d->mTimer, SIGNAL(timeout()), this, SLOT(handleMessages()));
connect(&d->mTimer, &QTimer::timeout, this, [this]() { d->handleMessages();});
}
MarkMessageReadHandler::~MarkMessageReadHandler()
......
......@@ -59,8 +59,6 @@ private:
class Private;
friend class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void handleMessages())
//@endcond
};
}
......
......@@ -57,8 +57,8 @@ bool VerifyDetachedBodyPartMemento::start()
#ifdef DEBUG_SIGNATURE
qCDebug(MIMETREEPARSER_LOG) << "tokoe: VerifyDetachedBodyPartMemento started";
#endif
connect(m_job, SIGNAL(result(GpgME::VerificationResult)),
this, SLOT(slotResult(GpgME::VerificationResult)));
connect(m_job.data(), &VerifyDetachedJob::result,
this, &VerifyDetachedBodyPartMemento::slotResult);
if (const Error err = m_job->start(m_signature, m_plainText)) {
m_vr = VerificationResult(err);
#ifdef DEBUG_SIGNATURE
......
......@@ -150,9 +150,9 @@ bool VerifyOpaqueBodyPartMemento::startKeyListJob()
if (const GpgME::Error err = m_keylistjob->start(keyListPattern())) {
return false;
}
connect(m_keylistjob, SIGNAL(done()), this, SLOT(slotKeyListJobDone()));
connect(m_keylistjob, SIGNAL(nextKey(GpgME::Key)),
this, SLOT(slotNextKey(GpgME::Key)));
connect(m_keylistjob.data(), &Job::done, this, &VerifyOpaqueBodyPartMemento::slotKeyListJobDone);
connect(m_keylistjob.data(), &KeyListJob::nextKey,
this, &VerifyOpaqueBodyPartMemento::slotNextKey);
return true;
}
......
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