Allow to share text

wilder
Laurent Montel 6 years ago
parent 990de56c08
commit 241bd47477
  1. 2
      CMakeLists.txt
  2. 2
      src/kmmainwidget.cpp
  3. 2
      src/kmreadermainwin.cpp
  4. 5
      src/kmreaderwin.cpp
  5. 2
      src/kmreaderwin.h

@ -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)
set(LIBGRAVATAR_VERSION_LIB "5.14.40")
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(PIMCOMMON_LIB_VERSION_LIB "5.14.47")
set(LIBKDEPIM_LIB_VERSION_LIB "5.14.46")

@ -2747,6 +2747,8 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg, const QUrl &url, c
menu.addSeparator();
menu.addAction(mMsgView->speakTextAction());
}
menu.addSeparator();
menu.addAction(mMsgView->shareTextAction());
} else if (!urlMenuAdded) {
// popup somewhere else (i.e., not a URL) on the message
if (!mMessagePane->currentMessage()) {

@ -699,6 +699,8 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg, const QUrl &url
menu->addSeparator();
menu->addAction(mReaderWin->speakTextAction());
}
menu->addSeparator();
menu->addAction(mReaderWin->shareTextAction());
} else if (!urlMenuAdded) {
if (!menu) {
menu = new QMenu(this);

@ -670,6 +670,11 @@ QAction *KMReaderWin::speakTextAction() const
return mViewer->speakTextAction();
}
QAction *KMReaderWin::shareTextAction() const
{
return mViewer->shareTextAction();
}
QAction *KMReaderWin::downloadImageToDiskAction() const
{
return mImageUrlSaveAsAction;

@ -148,6 +148,8 @@ public:
QAction *resetMessageDisplayFormatAction() const;
QAction *editContactAction() const;
QAction *developmentToolsAction() const;
QAction *shareTextAction() const;
QMenu *viewHtmlOption() const;
QAction *shareImage() const;

Loading…
Cancel
Save