Commit e8520a16 authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

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

Reported by hivolbill in the forum.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7be07b1a
...@@ -261,7 +261,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event ) ...@@ -261,7 +261,7 @@ void SeekSlider::mouseMoveEvent( QMouseEvent *event )
mTimeTooltip->setText( psz_length, chapterLabel ); mTimeTooltip->setText( psz_length, chapterLabel );
QPoint p( event->globalX() - ( event->x() - posX ) - ( mTimeTooltip->width() / 2 ), 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 ); mTimeTooltip->move( p );
} }
event->accept(); event->accept();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment