b
This commit is contained in:
@@ -205,10 +205,20 @@ void CommandBox::commandAccepted(bool flag,uint16_t command,uint8_t result)
|
||||
|
||||
if(string.size() > 0)
|
||||
{
|
||||
QTextToSpeech *tts = new QTextToSpeech();
|
||||
tts->say(string);
|
||||
tts->deleteLater();
|
||||
emit showMessage(string);
|
||||
QVariant flag;
|
||||
Config *cfg = new Config();
|
||||
|
||||
cfg->getTTS(&flag);
|
||||
|
||||
if(flag.toBool())
|
||||
{
|
||||
QTextToSpeech *tts = new QTextToSpeech();
|
||||
tts->say(string);
|
||||
tts->deleteLater();
|
||||
|
||||
}
|
||||
emit showMessage(string);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "CommandEditor.h"
|
||||
#include "QtTextToSpeech/QtTextToSpeech"
|
||||
#include "mavlink.h"
|
||||
|
||||
#include "Config/Config.h"
|
||||
#include "ToolsUI/ToolsWidget.h"
|
||||
|
||||
namespace Ui {
|
||||
|
||||
Reference in New Issue
Block a user