Commit 6a7b614a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Emit clipResized from SequenceWorkflow

parent 98050f06
......@@ -271,9 +271,7 @@ void
Commands::Clip::Resize::internalRedo()
{
bool ret = m_workflow->resizeClip( m_clip->uuid, m_newBegin, m_newEnd, m_newPos );
if ( ret == true )
emit Core::instance()->workflow()->clipResized( m_clip->uuid.toString() );
else
if ( ret == false )
invalidate();
}
......@@ -281,9 +279,7 @@ void
Commands::Clip::Resize::internalUndo()
{
bool ret = m_workflow->resizeClip( m_clip->uuid, m_oldBegin, m_oldEnd, m_oldPos );
if ( ret == true )
emit Core::instance()->workflow()->clipResized( m_clip->uuid.toString() );
else
if ( ret == false )
invalidate();
}
......
......@@ -65,6 +65,7 @@ MainWorkflow::MainWorkflow( Settings* projectSettings, int trackCount ) :
connect( m_sequenceWorkflow.get(), &SequenceWorkflow::clipRemoved, this, &MainWorkflow::clipRemoved );
connect( m_sequenceWorkflow.get(), &SequenceWorkflow::clipLinked, this, &MainWorkflow::clipLinked );
connect( m_sequenceWorkflow.get(), &SequenceWorkflow::clipMoved, this, &MainWorkflow::clipMoved );
connect( m_sequenceWorkflow.get(), &SequenceWorkflow::clipResized, this, &MainWorkflow::clipResized );
m_renderer->setInput( m_sequenceWorkflow->input() );
connect( m_renderer->eventWatcher(), &RendererEventWatcher::lengthChanged, this, &MainWorkflow::lengthChanged );
......
......@@ -137,6 +137,7 @@ SequenceWorkflow::resizeClip( const QUuid& uuid, qint64 newBegin, qint64 newEnd,
if ( ret == false )
return false;
ret = moveClip( uuid, trackId, newPos );
emit clipResized( uuid.toString() );
return ret;
}
......
......@@ -116,6 +116,7 @@ class SequenceWorkflow : public QObject
void clipRemoved( QString );
void clipLinked( QString, QString );
void clipMoved( QString );
void clipResized( QString );
};
#endif // SEQUENCEWORKFLOW_H
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