Commit 6012054c authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Finally this hack is not needed anymore

parent 333f5256
......@@ -104,10 +104,8 @@ void TracksView::addVideoTrack()
track->setPreferredHeight( m_tracksHeight );
track->setContentsMargins( 0, 0, 0, 0 );
m_layout->insertItem( 0, track );
QApplication::processEvents(); //FIXME This is a bit hackish
m_numVideoTrack++;
m_scene->invalidate();
//FIXME this should maybe go elsewhere
setSceneRect( m_layout->contentsRect().adjusted( 0, 0, 100, 100 ) );
m_cursorLine->setHeight( m_layout->contentsRect().height() );
}
......@@ -119,10 +117,8 @@ void TracksView::addAudioTrack()
track->setPreferredHeight( m_tracksHeight );
track->setContentsMargins( 0, 0, 0, 0 );
m_layout->insertItem( 1000, track );
QApplication::processEvents(); //FIXME This is a bit hackish
m_numAudioTrack++;
m_scene->invalidate();
//FIXME this should maybe go elsewhere
setSceneRect( m_layout->contentsRect().adjusted( 0, 0, 100, 100 ) );
m_cursorLine->setHeight( m_layout->contentsRect().height() );
}
......
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