[vlc-commits] qt4: fix y-axis positioning bug in the time tooltip
Ludovic Fauvet
git at videolan.org
Thu Jun 7 16:38:28 CEST 2012
vlc/vlc-2.0 | branch: master | Ludovic Fauvet <etix at l0cal.com> | Thu Jun 7 12:56:23 2012 +0200| [e8520a16a1facdd057011d9b93d9dc25e4834c45] | 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/vlc-2.0.git/?a=commit;h=e8520a16a1facdd057011d9b93d9dc25e4834c45
---
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 2fec736..ea6d435 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -261,7 +261,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
mTimeTooltip->setText( psz_length, chapterLabel );
QPoint p( event->globalX() - ( event->x() - posX ) - ( mTimeTooltip->width() / 2 ),
- QWidget::mapToGlobal( pos() ).y() - ( mTimeTooltip->height() + 2 ) );
+ QWidget::mapToGlobal( QPoint( 0, 0 ) ).y() - ( mTimeTooltip->height() - 2 ) );
mTimeTooltip->move( p );
}
event->accept();
More information about the vlc-commits
mailing list