Commit 241bd474 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to share text

parent 990de56c
Pipeline #26195 failed with stage
in 20 minutes and 58 seconds
...@@ -66,7 +66,7 @@ option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE) ...@@ -66,7 +66,7 @@ option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widgets WebEngine WebEngineWidgets) find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widgets WebEngine WebEngineWidgets)
set(LIBGRAVATAR_VERSION_LIB "5.14.40") set(LIBGRAVATAR_VERSION_LIB "5.14.40")
set(MAILCOMMON_LIB_VERSION_LIB "5.14.43") set(MAILCOMMON_LIB_VERSION_LIB "5.14.43")
set(MESSAGELIB_LIB_VERSION_LIB "5.14.45") set(MESSAGELIB_LIB_VERSION_LIB "5.14.49")
set(LIBKLEO_LIB_VERSION_LIB "5.14.40") set(LIBKLEO_LIB_VERSION_LIB "5.14.40")
set(PIMCOMMON_LIB_VERSION_LIB "5.14.47") set(PIMCOMMON_LIB_VERSION_LIB "5.14.47")
set(LIBKDEPIM_LIB_VERSION_LIB "5.14.46") set(LIBKDEPIM_LIB_VERSION_LIB "5.14.46")
......
...@@ -2747,6 +2747,8 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c ...@@ -2747,6 +2747,8 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c
menu.addSeparator(); menu.addSeparator();
menu.addAction(mMsgView->speakTextAction()); menu.addAction(mMsgView->speakTextAction());
} }
menu.addSeparator();
menu.addAction(mMsgView->shareTextAction());
} else if (!urlMenuAdded) { } else if (!urlMenuAdded) {
// popup somewhere else (i.e., not a URL) on the message // popup somewhere else (i.e., not a URL) on the message
if (!mMessagePane->currentMessage()) { if (!mMessagePane->currentMessage()) {
......
...@@ -699,6 +699,8 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, const QUrl &url ...@@ -699,6 +699,8 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, const QUrl &url
menu->addSeparator(); menu->addSeparator();
menu->addAction(mReaderWin->speakTextAction()); menu->addAction(mReaderWin->speakTextAction());
} }
menu->addSeparator();
menu->addAction(mReaderWin->shareTextAction());
} else if (!urlMenuAdded) { } else if (!urlMenuAdded) {
if (!menu) { if (!menu) {
menu = new QMenu(this); menu = new QMenu(this);
......
...@@ -670,6 +670,11 @@ QAction *KMReaderWin::speakTextAction() const ...@@ -670,6 +670,11 @@ QAction *KMReaderWin::speakTextAction() const
return mViewer->speakTextAction(); return mViewer->speakTextAction();
} }
QAction *KMReaderWin::shareTextAction() const
{
return mViewer->shareTextAction();
}
QAction *KMReaderWin::downloadImageToDiskAction() const QAction *KMReaderWin::downloadImageToDiskAction() const
{ {
return mImageUrlSaveAsAction; return mImageUrlSaveAsAction;
......
...@@ -148,6 +148,8 @@ public: ...@@ -148,6 +148,8 @@ public:
QAction *resetMessageDisplayFormatAction() const; QAction *resetMessageDisplayFormatAction() const;
QAction *editContactAction() const; QAction *editContactAction() const;
QAction *developmentToolsAction() const; QAction *developmentToolsAction() const;
QAction *shareTextAction() const;
QMenu *viewHtmlOption() const; QMenu *viewHtmlOption() const;
QAction *shareImage() const; QAction *shareImage() const;
......
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