forked from len0rd/rockbox
rbutil: Disable TTS test on Qt6.
Qt6 has QMultimedia, but QSound has been removed. It's only use for playing a TTS test sample. Disable that for now. Change-Id: Id3b5c834f9579a43e390c0c00a4c1a35b59182bd
This commit is contained in:
parent
00ec195c26
commit
f3b19de594
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
#include <QProgressDialog>
|
#include <QProgressDialog>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#ifdef QT_MULTIMEDIA_LIB
|
#if defined(QT_MULTIMEDIA_LIB) && (QT_VERSION < 0x060000)
|
||||||
#include <QSound>
|
#include <QSound>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ void Config::updateTtsState(int index)
|
||||||
{
|
{
|
||||||
ui.configTTSstatus->setText(tr("Configuration OK"));
|
ui.configTTSstatus->setText(tr("Configuration OK"));
|
||||||
ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/go-next.svg")));
|
ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/go-next.svg")));
|
||||||
#ifdef QT_MULTIMEDIA_LIB
|
#if defined(QT_MULTIMEDIA_LIB) && (QT_VERSION < 0x060000)
|
||||||
ui.testTTS->setEnabled(true);
|
ui.testTTS->setEnabled(true);
|
||||||
#else
|
#else
|
||||||
ui.testTTS->setEnabled(false);
|
ui.testTTS->setEnabled(false);
|
||||||
|
@ -894,7 +894,7 @@ void Config::configTts()
|
||||||
|
|
||||||
void Config::testTts()
|
void Config::testTts()
|
||||||
{
|
{
|
||||||
#ifdef QT_MULTIMEDIA_LIB
|
#if defined(QT_MULTIMEDIA_LIB) && (QT_VERSION < 0x060000)
|
||||||
QString errstr;
|
QString errstr;
|
||||||
int index = ui.comboTts->currentIndex();
|
int index = ui.comboTts->currentIndex();
|
||||||
TTSBase* tts;
|
TTSBase* tts;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue