Skip to content
GitLab
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
da9e50c4
Commit
da9e50c4
authored
Mar 07, 2020
by
Laurent Montel
Browse files
Add export as pdf in right menu too.
(Asked by Allen)
parent
ff3f300d
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/kmmainwidget.cpp
View file @
da9e50c4
...
...
@@ -2797,6 +2797,7 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c
}
menu
.
addAction
(
mSaveAsAction
);
menu
.
addAction
(
mSaveAttachmentsAction
);
menu
.
addAction
(
mMsgActions
->
exportToPdfAction
());
menu
.
addSeparator
();
if
(
parentCol
.
isValid
()
&&
CommonKernel
->
folderIsTrash
(
parentCol
))
{
menu
.
addAction
(
mDeleteAction
);
...
...
src/kmreadermainwin.cpp
View file @
da9e50c4
...
...
@@ -751,6 +751,7 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, const QUrl &url
menu
->
addAction
(
mMsgActions
->
printAction
());
menu
->
addSeparator
();
menu
->
addAction
(
mReaderWin
->
saveAsAction
());
menu
->
addAction
(
mMsgActions
->
exportToPdfAction
());
menu
->
addAction
(
mSaveAtmAction
);
if
(
msg
.
isValid
())
{
if
(
mReaderWin
->
dkimViewerMenu
())
{
...
...
src/messageactions.cpp
View file @
da9e50c4
...
...
@@ -780,3 +780,9 @@ void MessageActions::slotExportToPdf()
mMessageView
->
viewer
()
->
exportToPdf
(
fileName
);
}
}
QAction
*
MessageActions
::
exportToPdfAction
()
const
{
return
mExportToPdfAction
;
}
src/messageactions.h
View file @
da9e50c4
...
...
@@ -99,6 +99,9 @@ public:
QAction
*
editAsNewAction
()
const
;
QAction
*
exportToPdfAction
()
const
;
void
setExportToPdfAction
(
QAction
*
exportToPdfAction
);
Q_SIGNALS:
// This signal is emitted when a reply is triggered and the
// action has finished.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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