Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
0e83bb94
Commit
0e83bb94
authored
Oct 21, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use KActionMenu and use setDelayed(false)
parent
6b9d6790
Pipeline
#38216
failed with stage
in 5 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kmail/editorplugins/sharetext/sharetextplugineditorinterface.cpp
...ditorplugins/sharetext/sharetextplugineditorinterface.cpp
+3
-1
No files found.
kmail/editorplugins/sharetext/sharetextplugineditorinterface.cpp
View file @
0e83bb94
...
...
@@ -25,6 +25,7 @@
#include <KActionCollection>
#include <KActionMenuChangeCase>
#include <KLocalizedString>
#include <KActionMenu>
#include <QAction>
ShareTextPluginEditorInterface
::
ShareTextPluginEditorInterface
(
QObject
*
parent
)
...
...
@@ -40,9 +41,10 @@ ShareTextPluginEditorInterface::~ShareTextPluginEditorInterface()
void
ShareTextPluginEditorInterface
::
createAction
(
KActionCollection
*
ac
)
{
SharetextPurposeMenuWidget
*
purposeMenu
=
new
SharetextPurposeMenuWidget
(
parentWidget
(),
this
);
Q
Action
*
shareAction
=
new
Q
Action
(
i18n
(
"Share Mail Text..."
),
this
);
K
Action
Menu
*
shareAction
=
new
K
Action
Menu
(
i18n
(
"Share Mail Text..."
),
this
);
shareAction
->
setMenu
(
purposeMenu
->
menu
());
shareAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-share"
)));
shareAction
->
setDelayed
(
false
);
ac
->
addAction
(
QStringLiteral
(
"share_text_menu"
),
shareAction
);
purposeMenu
->
setEditorWidget
(
this
);
MessageComposer
::
PluginActionType
type
(
shareAction
,
MessageComposer
::
PluginActionType
::
File
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment