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);
|
||||
}
|
||||
|
||||
@@ -65,6 +65,9 @@ public slots:
|
||||
void getBeep(QVariant *value);
|
||||
void setBeep(QVariant value);
|
||||
|
||||
void getTTS(QVariant *value);
|
||||
void setTTS(QVariant value);
|
||||
|
||||
private slots:
|
||||
|
||||
void loadJson(const QString& jsonFilename);
|
||||
|
||||
Reference in New Issue
Block a user