[vlc-devel] [PATCH 2/3] Qt: add better tooltip to timelabel

Rémi Denis-Courmont remi at remlab.net
Thu Mar 11 08:49:18 CET 2010


On Wed, 10 Mar 2010 23:13:28 +0100, Francois Cartegnie <fcvlcdev at free.fr>
wrote:
> ---
>  modules/gui/qt4/components/interface_widgets.cpp |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/modules/gui/qt4/components/interface_widgets.cpp
> b/modules/gui/qt4/components/interface_widgets.cpp
> index cd1fb80..78f5b5a 100644
> --- a/modules/gui/qt4/components/interface_widgets.cpp
> +++ b/modules/gui/qt4/components/interface_widgets.cpp
> @@ -590,7 +590,9 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf  )
>      b_remainingTime = false;
>      setText( " --:--/--:-- " );
>      setAlignment( Qt::AlignRight | Qt::AlignVCenter );
> -    setToolTip( qtr( "Toggle between elapsed and remaining time" ) );
> +    setToolTip(
> +        "- " + qtr( "Click to Toggle between elapsed and remaining
time")
> +
> +        "\n- " + qtr("Double Click to jump to a chosen time position")
);
>      bufTimer->setSingleShot( true );

Maybe I'm alone but I really don't like the implicit casting from const
char * to QString.

-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis




More information about the vlc-devel mailing list