summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-18 07:07:28 +0200
committerMontel Laurent <[email protected]>2017-06-18 07:07:28 +0200
commitba208c6431fe392d22df1b2678f837e59671aaa1 (patch)
tree9a151b241b3af7c10e330895dd26112bd3045a54
parent88d6a6f126abd21e9a86d9ef35ab5cfcc3507837 (diff)
implement default value
-rw-r--r--src/texttospeech/texttospeechconfigwidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/texttospeech/texttospeechconfigwidget.cpp b/src/texttospeech/texttospeechconfigwidget.cpp
index 1a12892..04df294 100644
--- a/src/texttospeech/texttospeechconfigwidget.cpp
+++ b/src/texttospeech/texttospeechconfigwidget.cpp
@@ -105,7 +105,7 @@ void TextToSpeechConfigWidget::readConfig()
KConfigGroup grp = config.group("Settings");
mRate->setValue(static_cast<int>(grp.readEntry("rate", 0) * 100));
mPitch->setValue(static_cast<int>(grp.readEntry("pitch", 0) * 100));
- mVolume->setValue(static_cast<int>(grp.readEntry("volume", 0)));
+ mVolume->setValue(static_cast<int>(grp.readEntry("volume", 50)));
updateLocale();
}
@@ -137,6 +137,10 @@ void TextToSpeechConfigWidget::setTextToSpeechConfigInterface(AbstractTextToSpee
void TextToSpeechConfigWidget::restoreDefaults()
{
+ mRate->setValue(0);
+ mPitch->setValue(0);
+ mVolume->setValue(50);
+
//TODO
}