Unverified Commit 8cfe118a authored by Andreas Sturmlechner's avatar Andreas Sturmlechner
Browse files

Fix build without texttospeech


Signed-off-by: default avatarAndreas Sturmlechner <asturm@gentoo.org>
parent 817515f9
Pipeline #141871 failed with stage
in 5 minutes and 17 seconds
......@@ -37,7 +37,7 @@
#include "widgets/kactionmenuaccount.h"
#include "widgets/kactionmenutransport.h"
#include <kpimtextedit/kpimtextedit-texttospeech.h>
#ifdef KPIMTEXTEDIT_TEXT_TO_SPEECH
#if KPIMTEXTEDIT_TEXT_TO_SPEECH
#include <KPIMTextEdit/TextToSpeech>
#endif
#include <KSieveUi/SieveDebugDialog>
......@@ -2710,7 +2710,7 @@ 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_TEXT_TO_SPEECH
if (KPIMTextEdit::TextToSpeech::self()->isReady()) {
menu.addSeparator();
menu.addAction(mMsgView->speakTextAction());
......
......@@ -55,7 +55,7 @@
#include <Akonadi/ItemMoveJob>
#include <Akonadi/MessageFlags>
#include <kpimtextedit/kpimtextedit-texttospeech.h>
#ifdef KPIMTEXTEDIT_TEXT_TO_SPEECH
#if KPIMTEXTEDIT_TEXT_TO_SPEECH
#include <KPIMTextEdit/TextToSpeech>
#endif
#include <MailCommon/MailUtil>
......@@ -739,7 +739,7 @@ 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_TEXT_TO_SPEECH
if (KPIMTextEdit::TextToSpeech::self()->isReady()) {
menu->addSeparator();
menu->addAction(mReaderWin->speakTextAction());
......
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