]> git.sesse.net Git - vlc/commitdiff
Fix a bug with slider positionning
authorClément Stenac <zorglub@videolan.org>
Sun, 27 Aug 2006 12:41:54 +0000 (12:41 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 27 Aug 2006 12:41:54 +0000 (12:41 +0000)
modules/gui/qt4/util/directslider.hpp
modules/gui/qt4/util/input_slider.cpp

index 5d487f39aa93c4dfc58eaac909b5368c2238c8b2..02ec2296e59ebd8d7c227a3cc5e6c392b2573acd 100644 (file)
@@ -48,7 +48,7 @@ public:
 #endif
             int pos = (int)(minimum() +
                           (double)(event->x())/width1*(maximum()-minimum()) );
-            setSliderPosition( pos );
+            setValue( pos );
             QSlider::mousePressEvent(event);
         }
     }
index 30278756f75c47c4d16413384eace8126f690b5d..72bb55311c1983ceff5c470803df12f0fb995e25 100644 (file)
@@ -35,7 +35,7 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) :
     setMinimum( 0 );
     setMaximum( 1000 );
     setSingleStep( 2 );
-    setPageStep( 1000 );
+    setPageStep( 10 );
     setTracking( true );
     connect( this, SIGNAL( valueChanged(int) ), this, SLOT( userDrag( int ) ) );
 }