]> git.sesse.net Git - vlc/commitdiff
qt4: fix y-axis positioning bug in the time tooltip
authorLudovic Fauvet <etix@videolan.org>
Thu, 7 Jun 2012 13:06:52 +0000 (15:06 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 Jun 2012 14:31:59 +0000 (16:31 +0200)
Reported by hivolbill in the forum.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/util/input_slider.cpp

index 0e70263303c666a2f8cac8fbf3e4067521dc555d..6b16767b1a4a44b0e596e10cf6830e100329999b 100644 (file)
@@ -298,7 +298,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
         }
 
         QPoint target( event->globalX() - ( event->x() - posX ),
-                  QWidget::mapToGlobal( pos() ).y() );
+                  QWidget::mapToGlobal( QPoint( 0, 0 ) ).y() );
         secstotimestr( psz_length, ( ( posX - margin ) * inputLength ) / ( size().width() - handleLength() ) );
         mTimeTooltip->setTip( target, psz_length, chapterLabel );
     }