diff options
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 8 |
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 @@ | |||
20 | #include <QProgressDialog> | 20 | #include <QProgressDialog> |
21 | #include <QFileDialog> | 21 | #include <QFileDialog> |
22 | #include <QUrl> | 22 | #include <QUrl> |
23 | #ifdef QT_MULTIMEDIA_LIB | ||
23 | #include <QSound> | 24 | #include <QSound> |
25 | #endif | ||
24 | 26 | ||
25 | #include "version.h" | 27 | #include "version.h" |
26 | #include "configure.h" | 28 | #include "configure.h" |
@@ -446,7 +448,11 @@ void Config::updateTtsState(int index) | |||
446 | { | 448 | { |
447 | ui.configTTSstatus->setText(tr("Configuration OK")); | 449 | ui.configTTSstatus->setText(tr("Configuration OK")); |
448 | ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/go-next.png"))); | 450 | ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/go-next.png"))); |
451 | #ifdef QT_MULTIMEDIA_LIB | ||
449 | ui.testTTS->setEnabled(true); | 452 | ui.testTTS->setEnabled(true); |
453 | #else | ||
454 | ui.testTTS->setEnabled(false); | ||
455 | #endif | ||
450 | } | 456 | } |
451 | else | 457 | else |
452 | { | 458 | { |
@@ -895,6 +901,7 @@ void Config::configTts() | |||
895 | 901 | ||
896 | void Config::testTts() | 902 | void Config::testTts() |
897 | { | 903 | { |
904 | #ifdef QT_MULTIMEDIA_LIB | ||
898 | QString errstr; | 905 | QString errstr; |
899 | int index = ui.comboTts->currentIndex(); | 906 | int index = ui.comboTts->currentIndex(); |
900 | TTSBase* tts; | 907 | TTSBase* tts; |
@@ -947,6 +954,7 @@ void Config::testTts() | |||
947 | delete tts; /* Config objects are never deleted (in fact, they are | 954 | delete tts; /* Config objects are never deleted (in fact, they are |
948 | leaked..), so we can't rely on QObject, since that would | 955 | leaked..), so we can't rely on QObject, since that would |
949 | delete the TTSBase instance on application exit */ | 956 | delete the TTSBase instance on application exit */ |
957 | #endif | ||
950 | } | 958 | } |
951 | 959 | ||
952 | void Config::configEnc() | 960 | void Config::configEnc() |