[vlc-commits] qt4: fix y-axis positioning bug in the time tooltip

Ludovic Fauvet git at videolan.org
Thu Jun 7 16:35:37 CEST 2012


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Jun  7 15:06:52 2012 +0200| [99e82ba6996d8ef87009748478cb24ea8cc0306f] | committer: Jean-Baptiste Kempf

qt4: fix y-axis positioning bug in the time tooltip

Reported by hivolbill in the forum.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99e82ba6996d8ef87009748478cb24ea8cc0306f
---

 modules/gui/qt4/util/input_slider.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 0e70263..6b16767 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -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 );
     }



More information about the vlc-commits mailing list