[vlc-devel] [PATCH 1/4] qt4: fix y-axis positioning bug in the time tooltip

Ludovic Fauvet etix at videolan.org
Thu Jun 7 15:06:52 CEST 2012


Reported by hivolbill in the forum.
---
 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 );
     }
-- 
1.7.10.3




More information about the vlc-devel mailing list