Commit 05abc205 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TracksView: Factorization.

parent c2558dcb
...@@ -1184,9 +1184,7 @@ TracksView::mouseReleaseEvent( QMouseEvent *event ) ...@@ -1184,9 +1184,7 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
m_actionItem->m_oldTrack = m_actionItem->track()->trackWorkflow(); m_actionItem->m_oldTrack = m_actionItem->track()->trackWorkflow();
m_actionRelativeX = -1; m_actionRelativeX = -1;
m_actionItem = NULL;
m_lastKnownTrack = NULL; m_lastKnownTrack = NULL;
m_effectTarget = NULL;
} }
else if ( m_action == TracksView::Resize ) else if ( m_action == TracksView::Resize )
{ {
...@@ -1209,11 +1207,11 @@ TracksView::mouseReleaseEvent( QMouseEvent *event ) ...@@ -1209,11 +1207,11 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
m_actionItem->triggerResize( target, m_actionItem->helper(), m_actionItem->triggerResize( target, m_actionItem->helper(),
newBegin, newEnd, m_actionItem->pos().x() ); newBegin, newEnd, m_actionItem->pos().x() );
updateDuration(); updateDuration();
m_effectTarget = NULL;
m_actionItem = NULL;
} }
out: out:
m_effectTarget = NULL;
m_actionItem = NULL;
m_action = TracksView::None; m_action = TracksView::None;
//setDragMode( QGraphicsView::NoDrag ); //setDragMode( QGraphicsView::NoDrag );
QGraphicsView::mouseReleaseEvent( event ); QGraphicsView::mouseReleaseEvent( event );
......
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