Commit 9191079a authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Reconnected PreviewWidget with frameChanged signal

parent bb1679ab
......@@ -67,6 +67,8 @@ PreviewWidget::PreviewWidget( GenericRenderer* genericRenderer, QWidget *parent
connect( m_renderer, SIGNAL( paused() ), this, SLOT( videoPaused() ) );
connect( m_renderer, SIGNAL( playing() ), this, SLOT( videoPlaying() ) );
connect( m_renderer, SIGNAL( positionChanged(float) ), this, SLOT( positionChanged(float) ) );
connect( m_renderer, SIGNAL( frameChanged(qint64,GenericRenderer::FrameChangedReason) ),
this, SLOT( frameChanged(qint64, GenericRenderer::FrameChangedReason ) ) );
connect( m_renderer, SIGNAL( endReached() ), this, SLOT( endReached() ) );
}
......@@ -94,10 +96,12 @@ void PreviewWidget::positionChanged( float newPos )
m_ui->rulerWidget->setValue( (int)( newPos * 1000.0 ) );
}
void PreviewWidget::frameChanged( qint64 currentFrame )
void PreviewWidget::frameChanged( qint64 currentFrame, GenericRenderer::FrameChangedReason reason )
{
if ( m_previewStopped == false )
if ( m_previewStopped == false && reason != GenericRenderer::PreviewCursor )
{
m_ui->rulerWidget->setFrame( currentFrame );
}
}
void PreviewWidget::seekSliderPressed()
......
......@@ -62,7 +62,7 @@ private slots:
void on_pushButtonNextFrame_clicked();
void on_pushButtonPreviousFrame_clicked();
void positionChanged( float );
void frameChanged( qint64 );
void frameChanged( qint64, GenericRenderer::FrameChangedReason reason );
void seekSliderPressed();
void seekSliderMoved( int value );
void seekSliderReleased();
......
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