]> git.sesse.net Git - vlc/commitdiff
Small sound slider size issue, Not perfect yet, but soon to be.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 12 Aug 2008 19:01:51 +0000 (12:01 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 12 Aug 2008 22:39:02 +0000 (15:39 -0700)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.hpp

index 0c711bc1be77cb2f51254f365d1dc468e5a70631..c14b3c81c4f1b7b904e391b3dd6e48d64e23cdaf 100644 (file)
@@ -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 */
index 2cf61020ee3f18c35b506695b7ff481e0ff96a90..767cef7cc586a96b1d8a9e9c6472bb1c9acd06f6 100644 (file)
@@ -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 )
index 39b5066e0c97606a34d97cf656bbd727d0b563d3..8e20df76771b7dba37023b87d48697c446b9456f 100644 (file)
@@ -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 );