[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim] pimcommon/texttospeech: Volume uses int argument now
From: Montel Laurent <montel () kde ! org>
Date: 2014-10-29 6:43:29
Message-ID: E1XjMyf-0006Ux-VH () scm ! kde ! org
[Download RAW message or body]
Git commit 169532273fc56f58e4a9a80c985a9f0c436eb8bc by Montel Laurent.
Committed on 29/10/2014 at 06:42.
Pushed by mlaurent into branch 'master'.
Volume uses int argument now
M +1 -1 pimcommon/texttospeech/texttospeech.cpp
M +1 -1 pimcommon/texttospeech/texttospeech.h
M +1 -2 pimcommon/texttospeech/texttospeechinterface.cpp
http://commits.kde.org/kdepim/169532273fc56f58e4a9a80c985a9f0c436eb8bc
diff --git a/pimcommon/texttospeech/texttospeech.cpp b/pimcommon/texttospee=
ch/texttospeech.cpp
index 4fb1896..6d655f8 100644
--- a/pimcommon/texttospeech/texttospeech.cpp
+++ b/pimcommon/texttospeech/texttospeech.cpp
@@ -151,7 +151,7 @@ void TextToSpeech::setPitch(double pitch)
#endif
}
=
-void TextToSpeech::setVolume(double volume)
+void TextToSpeech::setVolume(int volume)
{
#if KDEPIM_HAVE_TEXTTOSPEECH
mTextToSpeech->setVolume(volume);
diff --git a/pimcommon/texttospeech/texttospeech.h b/pimcommon/texttospeech=
/texttospeech.h
index 32fcce2..55d8d5f 100644
--- a/pimcommon/texttospeech/texttospeech.h
+++ b/pimcommon/texttospeech/texttospeech.h
@@ -56,7 +56,7 @@ public Q_SLOTS:
=
void setRate(double rate);
void setPitch(double pitch);
- void setVolume(double volume);
+ void setVolume(int volume);
=
Q_SIGNALS:
void stateChanged(TextToSpeech::State);
diff --git a/pimcommon/texttospeech/texttospeechinterface.cpp b/pimcommon/t=
exttospeech/texttospeechinterface.cpp
index 3cf6ad5..f8ea34a 100644
--- a/pimcommon/texttospeech/texttospeechinterface.cpp
+++ b/pimcommon/texttospeech/texttospeechinterface.cpp
@@ -52,8 +52,7 @@ int TextToSpeechInterface::volume() const
=
void TextToSpeechInterface::setVolume(int value)
{
- //TODO verify it
- PimCommon::TextToSpeech::self()->setVolume(value / 100);
+ PimCommon::TextToSpeech::self()->setVolume(value);
}
=
void TextToSpeechInterface::stateChanged(TextToSpeechWidget::State state)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic