[vlc-devel] commit: Small sound slider size issue, Not perfect yet, but soon to be. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Aug 13 00:36:16 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 12 12:01:51 2008 -0700| [a1d12e8c9460987104fb960701a32b4fbf744266] | committer: Jean-Baptiste Kempf
Small sound slider size issue, Not perfect yet, but soon to be.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1d12e8c9460987104fb960701a32b4fbf744266
---
modules/gui/qt4/components/interface_widgets.cpp | 2 +-
modules/gui/qt4/util/input_slider.cpp | 4 ++--
modules/gui/qt4/util/input_slider.hpp | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 0c711bc..c14b3c8 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -653,7 +653,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
volumeSlider->setOrientation( Qt::Horizontal );
}
volumeSlider->setMaximumSize( QSize( 200, 40 ) );
- volumeSlider->setMinimumSize( QSize( 106, 30 ) );
+ volumeSlider->setMinimumSize( QSize( 85, 30 ) );
volumeSlider->setFocusPolicy( Qt::NoFocus );
/* Set the volume from the config */
diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 2cf6102..767cef7 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -135,7 +135,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
pixGradient = QPixmap( mask.size() );
/* Gradient building from the preferences */
- QLinearGradient gradient( paddingL, 3, WLENGTH + paddingL , 3 );
+ QLinearGradient gradient( paddingL, 2, WLENGTH + paddingL , 2 );
QStringList colorList = qfu( psz_colors ).split( ";" );
free( psz_colors );
@@ -199,7 +199,7 @@ void SoundSlider::mouseMoveEvent( QMouseEvent *event )
if( b_sliding )
{
QRect rect( paddingL - 15, -1,
- WLENGTH , WHEIGHT + 5 );
+ WLENGTH + 15 * 2 , WHEIGHT + 5 );
if( !rect.contains( event->pos() ) )
{ /* We are outside */
if ( !b_outside )
diff --git a/modules/gui/qt4/util/input_slider.hpp b/modules/gui/qt4/util/input_slider.hpp
index 39b5066..8e20df7 100644
--- a/modules/gui/qt4/util/input_slider.hpp
+++ b/modules/gui/qt4/util/input_slider.hpp
@@ -65,7 +65,7 @@ public:
virtual ~SoundSlider() {};
protected:
- const static int paddingL = 3;
+ const static int paddingL = 4;
const static int paddingR = 2;
virtual void paintEvent(QPaintEvent *);
virtual void wheelEvent( QWheelEvent *event );
More information about the vlc-devel
mailing list