b
This commit is contained in:
@@ -257,3 +257,19 @@ void Config::setBeep(QVariant value)
|
||||
|
||||
setJsonObject("Warnning",obj);
|
||||
}
|
||||
|
||||
void Config::getTTS(QVariant *value)
|
||||
{
|
||||
QJsonObject obj = getJsonObject("Sound");
|
||||
|
||||
*value = obj.value("tts").toBool();
|
||||
}
|
||||
|
||||
void Config::setTTS(QVariant value)
|
||||
{
|
||||
QJsonObject obj;
|
||||
|
||||
obj["tts"] = value.toBool();
|
||||
|
||||
setJsonObject("Sound",obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user