Commit a987aa88 authored by luyikei's avatar luyikei

MainWorkflow: Denote the playable length of the workflow in the frameChanged signal

parent fb3c5b4d
......@@ -72,7 +72,7 @@ MainWorkflow::MainWorkflow( Settings* projectSettings, int trackCount ) :
connect( m_renderer->eventWatcher(), &RendererEventWatcher::endReached, this, &MainWorkflow::mainWorkflowEndReached );
connect( m_renderer->eventWatcher(), &RendererEventWatcher::positionChanged, this, [this]( qint64 pos )
{
emit frameChanged( pos, Vlmc::Renderer );
emit frameChanged( pos, m_sequenceWorkflow->input()->playableLength(), Vlmc::Renderer );
} );
m_settings->createVar( SettingValue::List, "tracks", QVariantList(), "", "", SettingValue::Nothing );
......
......@@ -206,10 +206,12 @@ class MainWorkflow : public QObject
* \brief Used to notify a change to the timeline and preview widget cursor
*
* \param newFrame The new rendered frame
* \param length The playable length
* \param reason The reason for clipanging frame. Usually, if emitted
* from the MainWorkflow, this should be "Renderer"
*/
void frameChanged( qint64 newFrame,
qint64 length,
Vlmc::FrameChangedReason reason );
/**
......
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