Commit acc463ba authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent 8145dd97
......@@ -3070,7 +3070,7 @@ void KMMainWidget::setupActions()
mTemplateMenu = new KActionMenu(QIcon::fromTheme(QStringLiteral("document-new")), i18n("Message From &Template"),
actionCollection());
mTemplateMenu->setDelayed(true);
mTemplateMenu->setPopupMode(QToolButton::DelayedPopup);
actionCollection()->addAction(QStringLiteral("new_from_template"), mTemplateMenu);
connect(mTemplateMenu->menu(), &QMenu::aboutToShow, this,
&KMMainWidget::slotShowNewFromTemplate);
......
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