Commit 3f5e0a91 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent 2e2ef261
Pipeline #45442 passed with stage
in 34 minutes and 46 seconds
......@@ -14,7 +14,7 @@
KActionMenuAccount::KActionMenuAccount(QObject *parent)
: KActionMenu(parent)
{
setDelayed(true);
setPopupMode(QToolButton::DelayedPopup);
connect(menu(), &QMenu::aboutToShow, this, &KActionMenuAccount::slotCheckTransportMenu);
connect(menu(), &QMenu::triggered, this, &KActionMenuAccount::slotSelectAccount);
connect(Akonadi::AgentManager::self(), &Akonadi::AgentManager::instanceNameChanged, this, &KActionMenuAccount::updateAccountMenu);
......
......@@ -11,7 +11,7 @@
KActionMenuTransport::KActionMenuTransport(QObject *parent)
: KActionMenu(parent)
{
setDelayed(true);
setPopupMode(QToolButton::DelayedPopup);
connect(MailTransport::TransportManager::self(), &MailTransport::TransportManager::transportsChanged, this, &KActionMenuTransport::updateTransportMenu);
connect(menu(), &QMenu::aboutToShow, this, &KActionMenuTransport::slotCheckTransportMenu);
connect(menu(), &QMenu::triggered, this, &KActionMenuTransport::slotSelectTransport);
......
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