summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index ab0281774d..80b54c163b 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -20,7 +20,9 @@
#include <QProgressDialog>
#include <QFileDialog>
#include <QUrl>
+#ifdef QT_MULTIMEDIA_LIB
#include <QSound>
+#endif
#include "version.h"
#include "configure.h"
@@ -446,7 +448,11 @@ void Config::updateTtsState(int index)
{
ui.configTTSstatus->setText(tr("Configuration OK"));
ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/go-next.png")));
+#ifdef QT_MULTIMEDIA_LIB
ui.testTTS->setEnabled(true);
+#else
+ ui.testTTS->setEnabled(false);
+#endif
}
else
{
@@ -895,6 +901,7 @@ void Config::configTts()
void Config::testTts()
{
+#ifdef QT_MULTIMEDIA_LIB
QString errstr;
int index = ui.comboTts->currentIndex();
TTSBase* tts;
@@ -947,6 +954,7 @@ void Config::testTts()
delete tts; /* Config objects are never deleted (in fact, they are
leaked..), so we can't rely on QObject, since that would
delete the TTSBase instance on application exit */
+#endif
}
void Config::configEnc()