Commit 4cab05a9 authored by Laurent Montel's avatar Laurent Montel 😁

Use new connect api

parent d4db1cdb
......@@ -88,8 +88,7 @@ IdentityCombo::IdentityCombo(IdentityManager *manager, QWidget *parent)
d->reloadUoidList();
connect(this, QOverload<int>::of(&IdentityCombo::activated), this, &IdentityCombo::slotEmitChanged);
connect(this, &IdentityCombo::identityChanged, this, &IdentityCombo::slotUpdateTooltip);
connect(manager, SIGNAL(changed()),
SLOT(slotIdentityManagerChanged()));
connect(manager, QOverload<>::of(&IdentityManager::changed), this, &IdentityCombo::slotIdentityManagerChanged);
slotUpdateTooltip(currentIdentity());
}
......
......@@ -31,8 +31,7 @@ public:
IdendentitiesCache()
: mIdentityManager(/*ro=*/ true)
{
connect(&mIdentityManager, SIGNAL(changed()),
SLOT(slotIdentitiesChanged()));
connect(&mIdentityManager, QOverload<>::of(&IdentityManager::changed), this, &IdendentitiesCache::slotIdentitiesChanged);
slotIdentitiesChanged();
}
......@@ -41,7 +40,7 @@ public:
return mEmails;
}
private Q_SLOTS:
private:
void slotIdentitiesChanged()
{
mEmails.clear();
......@@ -52,7 +51,6 @@ private Q_SLOTS:
}
}
private:
IdentityManager mIdentityManager;
QSet<QString> mEmails;
};
......
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