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

Add export as pdf in right menu too.

(Asked by Allen)
parent ff3f300d
......@@ -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);
......
......@@ -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()) {
......
......@@ -780,3 +780,9 @@ void MessageActions::slotExportToPdf()
mMessageView->viewer()->exportToPdf(fileName);
}
}
QAction *MessageActions::exportToPdfAction() const
{
return mExportToPdfAction;
}
......@@ -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.
......
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