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

Allow to show directly popup menu

parent 70dd48ab
Pipeline #38143 passed with stage
in 51 minutes and 12 seconds
......@@ -23,6 +23,7 @@
#include <kzip.h>
#include <KIconEngine>
#include <KStandardAction>
#include <KActionMenu>
#include <PimCommon/PurposeMenuWidget>
......@@ -80,7 +81,8 @@ SieveEditorWidget::SieveEditorWidget(bool useMenuBar, QWidget *parent)
toolbar->addAction(mShareScript);
SievePurposeMenuWidget *purposeMenu = new SievePurposeMenuWidget(this, this);
QAction *shareAction = new QAction(i18n("Share..."), this);
KActionMenu *shareAction = new KActionMenu(i18n("Share..."), this);
shareAction->setDelayed(false);
shareAction->setMenu(purposeMenu->menu());
shareAction->setIcon(QIcon::fromTheme(QStringLiteral("document-share")));
purposeMenu->setEditorWidget(this);
......
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