summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-26 22:28:29 +0200
committerMontel Laurent <[email protected]>2017-09-26 22:28:29 +0200
commit4cb9d53768bf66b566d7cb64c1e0aad0419d076e (patch)
tree5dcd4fa4f47b3ee4512c72d7cfdef80f8a062143
parent84b0482e8169db56ed01f889deeeea695d961fcf (diff)
Port to new connect api
-rw-r--r--src/kmailtransport/transportmanager.cpp5
-rw-r--r--src/kmailtransport/transportmanager.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/kmailtransport/transportmanager.cpp b/src/kmailtransport/transportmanager.cpp
index 3aa9b9e..d93de39 100644
--- a/src/kmailtransport/transportmanager.cpp
+++ b/src/kmailtransport/transportmanager.cpp
@@ -141,8 +141,7 @@ TransportManager::TransportManager()
QDBusServiceWatcher *watcher
= new QDBusServiceWatcher(DBUS_SERVICE_NAME, QDBusConnection::sessionBus(),
QDBusServiceWatcher::WatchForUnregistration, this);
- connect(watcher, SIGNAL(serviceUnregistered(QString)),
- SLOT(dbusServiceUnregistered()));
+ connect(watcher, &QDBusServiceWatcher::serviceUnregistered, this, [this]() { d->dbusServiceUnregistered(); });
QDBusConnection::sessionBus().connect(QString(), QString(),
DBUS_INTERFACE_NAME, DBUS_CHANGE_SIGNAL,
@@ -228,7 +227,7 @@ void TransportManager::addTransport(Transport *transport)
void TransportManager::schedule(TransportJob *job)
{
- connect(job, SIGNAL(result(KJob*)), SLOT(jobResult(KJob*)));
+ connect(job, &TransportJob::result, this, [this](KJob*job) {d->jobResult(job);});
// check if the job is waiting for the wallet
if (!job->transport()->isComplete()) {
diff --git a/src/kmailtransport/transportmanager.h b/src/kmailtransport/transportmanager.h
index 1caa5f2..6e836f0 100644
--- a/src/kmailtransport/transportmanager.h
+++ b/src/kmailtransport/transportmanager.h
@@ -291,8 +291,6 @@ private:
Q_PRIVATE_SLOT(d, void slotTransportsChanged())
Q_PRIVATE_SLOT(d, void slotWalletOpened(bool success))
- Q_PRIVATE_SLOT(d, void dbusServiceUnregistered())
- Q_PRIVATE_SLOT(d, void jobResult(KJob *job))
};
} // namespace MailTransport