[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:10:44 CEST 2012


On Thu, Jun 7, 2012 at 3:06 PM, Ludovic Fauvet <etix at videolan.org> wrote:
> 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
>

Attached the patch for the backport in 2.0.

Best regards,
-- Ludovic Fauvet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-qt4-fix-y-axis-positioning-bug-in-the-time-tooltip.patch
Type: application/octet-stream
Size: 1055 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120607/97c5a9c9/attachment.obj>


More information about the vlc-devel mailing list