Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
0b60197a
Commit
0b60197a
authored
Feb 23, 2021
by
Laurent Montel
😁
Browse files
Add menu
parent
08754dbe
Pipeline
#51912
passed with stage
in 26 minutes and 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmmainwidget.cpp
View file @
0b60197a
...
...
@@ -175,6 +175,7 @@
#include <MessageViewer/DKIMViewerMenu>
#include <MessageViewer/DKIMWidgetInfo>
#include <MessageViewer/RemoteContentMenu>
#ifdef WITH_KUSERFEEDBACK
#include <KUserFeedback/NotificationPopup>
#include <KUserFeedback/Provider>
...
...
@@ -2728,6 +2729,11 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg,
menu
.
addMenu
(
mMsgView
->
dkimViewerMenu
()
->
menu
());
menu
.
addSeparator
();
}
if
(
mMsgView
->
remoteContentMenu
())
{
menu
.
addMenu
(
mMsgView
->
remoteContentMenu
());
menu
.
addSeparator
();
}
menu
.
addActions
(
mMsgView
->
viewerPluginActionList
(
MessageViewer
::
ViewerPluginInterface
::
NeedMessage
));
menu
.
addSeparator
();
}
...
...
src/kmreaderwin.cpp
View file @
0b60197a
...
...
@@ -583,7 +583,7 @@ DKIMViewerMenu *KMReaderWin::dkimViewerMenu() const
return
mViewer
->
dkimViewerMenu
();
}
RemoteContentMenu
*
KMReaderWin
::
R
emoteContentMenu
()
const
RemoteContentMenu
*
KMReaderWin
::
r
emoteContentMenu
()
const
{
return
mViewer
->
remoteContentMenu
();
}
...
...
src/kmreaderwin.h
View file @
0b60197a
...
...
@@ -171,7 +171,7 @@ public:
void
hasMultiMessages
(
bool
multi
);
void
updateShowMultiMessagesButton
(
bool
enablePreviousButton
,
bool
enableNextButton
);
MessageViewer
::
RemoteContentMenu
*
R
emoteContentMenu
()
const
;
MessageViewer
::
RemoteContentMenu
*
r
emoteContentMenu
()
const
;
Q_SIGNALS:
void
showStatusBarMessage
(
const
QString
&
message
);
void
zoomChanged
(
qreal
factor
);
...
...
Write
Preview
Supports
Markdown
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