[vlmc-devel] [PATCH] Fix clip preview widget's ruler and lcd timer

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Mar 7 13:45:26 CET 2016


On 03/07/2016 03:18 AM, Paweł Goliński wrote:
> The widget was not notified from anywhere about
> movie frame changes, connected signal from renderer
> to PreviewRuler.
> ---
>   src/Gui/preview/PreviewRuler.cpp | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/src/Gui/preview/PreviewRuler.cpp b/src/Gui/preview/PreviewRuler.cpp
> index d17225e..823d1b1 100644
> --- a/src/Gui/preview/PreviewRuler.cpp
> +++ b/src/Gui/preview/PreviewRuler.cpp
> @@ -46,6 +46,8 @@ PreviewRuler::setRenderer( GenericRenderer* renderer )
>       }
>       m_renderer = renderer;
>
> +    connect( m_renderer, SIGNAL( frameChanged( qint64, Vlmc::FrameChangedReason ) ),
> +             this, SLOT( updateTimecode( qint64 ) ) );
>       connect( m_renderer->eventWatcher(), SIGNAL( stopped() ),
>                this, SLOT( clear() ) );
>   }
> @@ -230,6 +232,7 @@ PreviewRuler::setFrame( qint64 frame, bool broadcastEvent /*= false*/ )
>   void
>   PreviewRuler::updateTimecode( qint64 frames /*= -1*/ )
>   {
> +    setFrame( frames );
>       if ( m_renderer->length() > 0 )
>       {
>           int fps = (int)m_renderer->getFps();
>

Applied, thanks!


More information about the Vlmc-devel mailing list