Commit 99e82ba6 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 9846042c
......@@ -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 );
}
......
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