[vlc-devel] [PATCH] Qt: Show seek time in OSD when mouse seeking

Ancelot Mark Pinto ancelotpinto at gmail.com
Sat Aug 30 14:01:28 CEST 2014


Hi,
  Request feedback for this patch.
  This patch implements the enhancement in #6311.

Qt4: Show seek time in OSD when mouse seeking
----------
As requested in: ​
http://forum.videolan.org/viewtopic.php?f=14&t=98209&p=330282

Some people would want to see mouse seek positions in OSD when Qt4
interface is used. Currently only keyboard hotkeys (e.g. Ctrl+arrow keys)
and interface button seeks show position in OSD. The new seek slider shows
small time text when seeking, but it is too small for common HTPC usage
scenarios.

  On seek in the UI slider, an OSD update is triggered to the hotkeys
module. The same API (DisplayPosition) as the keyboard shortcuts is invoked
for the OSD.

  I found this task on the "Mini_Projects/Help_Fixing_bugs" section of the
VideoLAN Wiki.


-----
Ancelot Mark Pinto
Mumbai, India


On Sat, Aug 23, 2014 at 9:47 PM, Ancelot Mark Pinto <ancelotpinto at gmail.com>
wrote:

> Close #6311
> ---
>  modules/gui/qt4/input_manager.cpp | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/modules/gui/qt4/input_manager.cpp
> b/modules/gui/qt4/input_manager.cpp
> index 1a04f51..9850874 100644
> --- a/modules/gui/qt4/input_manager.cpp
> +++ b/modules/gui/qt4/input_manager.cpp
> @@ -798,7 +798,10 @@ void InputManager::UpdateProgramEvent()
>  void InputManager::sliderUpdate( float new_pos )
>  {
>      if( hasInput() )
> +    {
>          var_SetFloat( p_input, "position", new_pos );
> +        var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_POSITION
> );
> +    }
>      emit seekRequested( new_pos );
>  }
>
> --
> 1.9.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140830/f3b08f07/attachment.html>


More information about the vlc-devel mailing list