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

Make it compile without deprecated method

parent fa1eacc6
Pipeline #41226 canceled with stage
in 7 minutes and 35 seconds
......@@ -9,6 +9,7 @@
#include "sievepurposemenuwidget.h"
#include "sieve-editor.h"
#include <kwidgetsaddons_version.h>
#include "sieveeditortextmodewidget.h"
#include "scriptsparsing/parsingutil.h"
#include "autocreatescripts/sieveeditorgraphicalmodewidget.h"
......@@ -82,7 +83,11 @@ SieveEditorWidget::SieveEditorWidget(bool useMenuBar, QWidget *parent)
auto *purposeMenu = new SievePurposeMenuWidget(this, this);
KActionMenu *shareAction = new KActionMenu(i18n("Share..."), this);
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 77, 0)
shareAction->setPopupMode(QToolButton::InstantPopup);
#else
shareAction->setDelayed(false);
#endif
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