diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-12-08 14:41:31 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-01-11 14:58:45 (GMT) |
commit | e4f2a7f7aae733df87a60f0e9b32dd4d4f6ddcd0 (patch) | |
tree | 5e07bf11f4f74f9f35aa148b0cd4d18e1c4cc9ba | |
parent | af7a0cbe4d6dcbae5d16e91d488df5a5dc8919c2 (diff) | |
download | Qt-e4f2a7f7aae733df87a60f0e9b32dd4d4f6ddcd0.zip Qt-e4f2a7f7aae733df87a60f0e9b32dd4d4f6ddcd0.tar.gz Qt-e4f2a7f7aae733df87a60f0e9b32dd4d4f6ddcd0.tar.bz2 |
Added comments to clarify usage of Phonon::EffectParameter API
Task-number: QTBUG-4659
Reviewed-by: trustme
-rw-r--r-- | src/3rdparty/phonon/mmf/audioequalizer.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/3rdparty/phonon/mmf/audioequalizer.cpp b/src/3rdparty/phonon/mmf/audioequalizer.cpp index 37ba328..5a1ce19 100644 --- a/src/3rdparty/phonon/mmf/audioequalizer.cpp +++ b/src/3rdparty/phonon/mmf/audioequalizer.cpp @@ -95,14 +95,15 @@ void AudioEqualizer::getParameters(NativeEffect *effect, const qint32 defVol = effect->BandLevel(i); - parameters.append(EffectParameter(i, - tr("%1 Hz").arg(hz), - EffectParameter::LogarithmicHint, - QVariant(qint32(defVol)), - QVariant(qint32(dbMin)), - QVariant(qint32(dbMax)), - QVariantList(), - QString())); + parameters.append(EffectParameter( + /* parameterId */ i, + /* name */ tr("%1 Hz").arg(hz), + /* hints */ EffectParameter::LogarithmicHint, + /* defaultValue */ QVariant(qint32(defVol)), + /* minimumValue */ QVariant(qint32(dbMin)), + /* maximumValue */ QVariant(qint32(dbMax)), + /* values */ QVariantList(), + /* description */ QString())); } } |