[vlc-devel] [PATCH 2/3] Qt: simple_prefs audio: Use defined values Fixes #3351
Francois Cartegnie
fcvlcdev at free.fr
Sat Jul 10 19:49:41 CEST 2010
---
modules/gui/qt4/components/simple_preferences.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index d99d291..321de8b 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -310,6 +310,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#undef audioCommon
/* Audio Options */
+ ui.volumeValue->setMaximum( QT_VOLUME_MAX / QT_VOLUME_DEFAULT * 100 );
CONFIG_GENERIC_NO_BOOL( "qt-startvolume" , IntegerRangeSlider, NULL,
defaultVolume );
CONNECT( ui.defaultVolume, valueChanged( int ),
@@ -729,7 +730,7 @@ SPrefsPanel::~SPrefsPanel()
void SPrefsPanel::updateAudioVolume( int volume )
{
qobject_cast<QSpinBox *>(optionWidgets[volLW])
- ->setValue( volume * 100 / 256 );
+ ->setValue( volume * 100 / QT_VOLUME_DEFAULT );
}
--
1.6.4.4
More information about the vlc-devel
mailing list