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

We depends against kf5.77

parent e011ca66
Pipeline #45361 passed with stage
in 60 minutes and 13 seconds
......@@ -6,7 +6,6 @@
#include "sharetextplugineditorinterface.h"
#include "sharetexteditorplugin_debug.h"
#include <kwidgetsaddons_version.h>
#include "sharetextpurposemenuwidget.h"
#include <KPIMTextEdit/EditorUtil>
#include <KPIMTextEdit/RichTextEditor>
......@@ -32,11 +31,7 @@ void ShareTextPluginEditorInterface::createAction(KActionCollection *ac)
KActionMenu *shareAction = new KActionMenu(i18n("Share Mail Text..."), this);
shareAction->setMenu(purposeMenu->menu());
shareAction->setIcon(QIcon::fromTheme(QStringLiteral("document-share")));
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 77, 0)
shareAction->setPopupMode(QToolButton::InstantPopup);
#else
shareAction->setDelayed(false);
#endif
ac->addAction(QStringLiteral("share_text_menu"), shareAction);
purposeMenu->setEditorWidget(this);
MessageComposer::PluginActionType type(shareAction, MessageComposer::PluginActionType::File);
......
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