summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJanne Koskinen <janne.p.koskinen@digia.com>2010-02-03 17:33:40 (GMT)
committerJanne Koskinen <janne.p.koskinen@digia.com>2010-02-03 17:33:40 (GMT)
commite8e838c7e6b464264752af66ea525eb33066ce68 (patch)
tree82bfc9923fe6148834e4135622d21ec749e32ec6 /src
parentafae62256897a8ed14e3156df33838082c6d4b98 (diff)
parent4b059682ddba4a1fb90c656d7d829680779a2e60 (diff)
downloadQt-e8e838c7e6b464264752af66ea525eb33066ce68.zip
Qt-e8e838c7e6b464264752af66ea525eb33066ce68.tar.gz
Qt-e8e838c7e6b464264752af66ea525eb33066ce68.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/phonon/mmf/environmentalreverb.cpp22
-rw-r--r--src/3rdparty/phonon/mmf/utils.h2
-rw-r--r--src/gui/styles/qs60style.cpp15
3 files changed, 30 insertions, 9 deletions
diff --git a/src/3rdparty/phonon/mmf/environmentalreverb.cpp b/src/3rdparty/phonon/mmf/environmentalreverb.cpp
index 89f8d60..4a6ce29 100644
--- a/src/3rdparty/phonon/mmf/environmentalreverb.cpp
+++ b/src/3rdparty/phonon/mmf/environmentalreverb.cpp
@@ -140,55 +140,75 @@ bool EnvironmentalReverb::getParameters(CMdaAudioOutputStream *stream,
TUint32 umin, umax;
// DecayHFRatio
+ // Ratio of high-frequency decay time to the value specified by
+ // DecayTime.
effect->DecayHFRatioRange(umin, umax);
parameters.append(createParameter(
DecayHFRatio, tr("Decay HF ratio (%)"), effect->DecayHFRatio(),
umin, umax));
// DecayTime
+ // Time over which reverberation is diminished.
effect->DecayTimeRange(umin, umax);
parameters.append(createParameter(
DecayTime, tr("Decay time (ms)"), effect->DecayTime(),
umin, umax));
// Density
+ // Delay between first and subsequent reflections.
+ // Note that the S60 platform documentation does not make clear
+ // the distinction between this value and the Diffusion value.
parameters.append(createParameter(
Density, tr("Density (%)"), effect->Density(), 0, 100));
// Diffusion
+ // Delay between first and subsequent reflections.
+ // Note that the S60 platform documentation does not make clear
+ // the distinction between this value and the Density value.
parameters.append(createParameter(
Diffusion, tr("Diffusion (%)"), effect->Diffusion(), 0, 100));
// ReflectionsDelay
+ // Amount of delay between the arrival the direct path from the
+ // source and the arrival of the first reflection.
parameters.append(createParameter(
ReflectionsDelay, tr("Reflections delay (ms)"),
effect->ReflectionsDelay(), 0, effect->ReflectionsDelayMax()));
// ReflectionsLevel
- effect->ReflectionLevelRange(min, max);
+ // Amplitude of reflections. This value is corrected by the RoomLevel
+ // to give the final reflection amplitude.
+ effect->ReflectionLevelRange(min, max);
parameters.append(createParameter(
ReflectionsLevel, tr("Reflections level (mB)"),
effect->ReflectionsLevel(),
min, max, EffectParameter::LogarithmicHint));
// ReverbDelay
+ // Amount of time between arrival of the first reflection and start of
+ // the late reverberation.
parameters.append(createParameter(
ReverbDelay, tr("Reverb delay (ms)"), effect->ReverbDelay(),
0, effect->ReverbDelayMax()));
// ReverbLevel
+ // Amplitude of reverberations. This value is corrected by the
+ // RoomLevel to give the final reverberation amplitude.
effect->ReverbLevelRange(min, max);
parameters.append(createParameter(
ReverbLevel, tr("Reverb level (mB)"), effect->ReverbLevel(),
min, max, EffectParameter::LogarithmicHint));
// RoomHFLevel
+ // Amplitude of low-pass filter used to attenuate the high frequency
+ // component of reflected sound.
effect->RoomHFLevelRange(min, max);
parameters.append(createParameter(
RoomHFLevel, tr("Room HF level"), effect->RoomHFLevel(),
min, max));
// RoomLevel
+ // Master volume control for all reflected sound.
effect->RoomLevelRange(min, max);
parameters.append(createParameter(
RoomLevel, tr("Room level (mB)"), effect->RoomLevel(),
diff --git a/src/3rdparty/phonon/mmf/utils.h b/src/3rdparty/phonon/mmf/utils.h
index 56ccafc..acad55a 100644
--- a/src/3rdparty/phonon/mmf/utils.h
+++ b/src/3rdparty/phonon/mmf/utils.h
@@ -44,7 +44,7 @@ enum PanicCode {
class Utils
{
- Q_DECLARE_TR_FUNCTIONS(Utils)
+ Q_DECLARE_TR_FUNCTIONS(Phonon::MMF)
public:
/**
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index fc435e8..9025e5b 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2399,13 +2399,14 @@ QSize QS60Style::sizeFromContents(ContentsType ct, const QStyleOption *opt,
sz.setHeight(sz.height() + 2 * pixelMetric(PM_FocusFrameVMargin));
break;
#ifndef QT_NO_COMBOBOX
- case CT_ComboBox:
- // Fixing Ui design issues with too wide QComboBoxes and greedy SizeHints
- // Make sure, that the combobox says within the screen.
- const QSize desktopContentSize = QApplication::desktop()->availableGeometry().size()
- -QSize(pixelMetric(PM_LayoutLeftMargin) + pixelMetric(PM_LayoutRightMargin), 0);
- sz = QCommonStyle::sizeFromContents(ct, opt, csz, widget).
- boundedTo(desktopContentSize);
+ case CT_ComboBox: {
+ // Fixing Ui design issues with too wide QComboBoxes and greedy SizeHints
+ // Make sure, that the combobox says within the screen.
+ const QSize desktopContentSize = QApplication::desktop()->availableGeometry().size()
+ -QSize(pixelMetric(PM_LayoutLeftMargin) + pixelMetric(PM_LayoutRightMargin), 0);
+ sz = QCommonStyle::sizeFromContents(ct, opt, csz, widget).
+ boundedTo(desktopContentSize);
+ }
break;
#endif
default: