Commit 817515f9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without texttospeach

parent 978beeb7
Pipeline #141844 failed with stage
in 4 minutes and 9 seconds
......@@ -36,7 +36,10 @@
#include "widgets/collectionpane.h"
#include "widgets/kactionmenuaccount.h"
#include "widgets/kactionmenutransport.h"
#include <kpimtextedit/kpimtextedit-texttospeech.h>
#ifdef KPIMTEXTEDIT_TEXT_TO_SPEECH
#include <KPIMTextEdit/TextToSpeech>
#endif
#include <KSieveUi/SieveDebugDialog>
#include <MailCommon/FolderTreeView>
#include <MailCommon/MailKernel>
......@@ -2707,10 +2710,12 @@ void KMMainWidget::showMessagePopup(const Akonadi::Item &msg,
mMsgActions->addWebShortcutsMenu(&menu, selectedText);
menu.addSeparator();
menu.addActions(mMsgView->viewerPluginActionList(MessageViewer::ViewerPluginInterface::NeedSelection));
#ifdef KPIMTEXTEDIT_TEXT_TO_SPEECH
if (KPIMTextEdit::TextToSpeech::self()->isReady()) {
menu.addSeparator();
menu.addAction(mMsgView->speakTextAction());
}
#endif
menu.addSeparator();
menu.addAction(mMsgView->shareTextAction());
} else if (!urlMenuAdded) {
......
......@@ -54,7 +54,10 @@
#include <Akonadi/ItemCreateJob>
#include <Akonadi/ItemMoveJob>
#include <Akonadi/MessageFlags>
#include <kpimtextedit/kpimtextedit-texttospeech.h>
#ifdef KPIMTEXTEDIT_TEXT_TO_SPEECH
#include <KPIMTextEdit/TextToSpeech>
#endif
#include <MailCommon/MailUtil>
#include <MessageViewer/DKIMViewerMenu>
#include <MessageViewer/DKIMWidgetInfo>
......@@ -736,10 +739,12 @@ void KMReaderMainWin::showMessagePopup(const Akonadi::Item &msg,
mMsgActions->addWebShortcutsMenu(menu, selectedText);
menu->addSeparator();
menu->addActions(mReaderWin->viewerPluginActionList(MessageViewer::ViewerPluginInterface::NeedSelection));
#ifdef KPIMTEXTEDIT_TEXT_TO_SPEECH
if (KPIMTextEdit::TextToSpeech::self()->isReady()) {
menu->addSeparator();
menu->addAction(mReaderWin->speakTextAction());
}
#endif
menu->addSeparator();
menu->addAction(mReaderWin->shareTextAction());
} else if (!urlMenuAdded) {
......
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