Commit 81330811 authored by Laurent Montel's avatar Laurent Montel 😁

Fix variable name

parent cd57dd0b
......@@ -91,7 +91,7 @@ find_package(Qt5 OPTIONAL_COMPONENTS TextToSpeech)
if (NOT Qt5TextToSpeech_FOUND)
message(STATUS "Qt5TextToSpeech not found, speech feature will be disabled")
else()
add_definitions(-DHAVE_SPEECH)
add_definitions(-DHAVE_TEXTTOSPEECH)
endif()
......
......@@ -117,7 +117,7 @@ NewMailNotifierSettingsDialog::NewMailNotifierSettingsDialog(QWidget *parent)
vbox->addStretch();
tab->addTab(settings, i18n("Display"));
#ifdef HAVE_SPEECH
#ifdef HAVE_TEXTTOSPEECH
QWidget *textSpeakWidget = new QWidget;
vbox = new QVBoxLayout;
textSpeakWidget->setLayout(vbox);
......@@ -219,7 +219,7 @@ void NewMailNotifierSettingsDialog::slotOkClicked()
NewMailNotifierAgentSettings::setShowSubject(mShowSubject->isChecked());
NewMailNotifierAgentSettings::setShowFolder(mShowFolders->isChecked());
NewMailNotifierAgentSettings::setExcludeEmailsFromMe(mExcludeMySelf->isChecked());
#ifdef HAVE_SPEECH
#ifdef HAVE_TEXTTOSPEECH
NewMailNotifierAgentSettings::setTextToSpeakEnabled(mTextToSpeak->isChecked());
NewMailNotifierAgentSettings::setTextToSpeak(mTextToSpeakSetting->text());
#endif
......
......@@ -33,7 +33,7 @@
#include "newmailnotifier_debug.h"
#include <QTextDocument>
#ifdef HAVE_SPEECH
#ifdef HAVE_TEXTTOSPEECH
#include <QTextToSpeech>
#endif
......@@ -148,7 +148,7 @@ void SpecialNotifierJob::emitNotification(const QPixmap &pixmap)
if (NewMailNotifierAgentSettings::textToSpeakEnabled()) {
if (!NewMailNotifierAgentSettings::textToSpeak().isEmpty()) {
#ifdef HAVE_SPEECH
#ifdef HAVE_TEXTTOSPEECH
QTextToSpeech *speech = new QTextToSpeech(this);
QString message = NewMailNotifierAgentSettings::textToSpeak();
message.replace(QStringLiteral("%s"), mSubject.toHtmlEscaped());
......
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