Commit da05c33d authored by Ludovic Fauvet's avatar Ludovic Fauvet

Adjust the sceneRect vertically.

parent bf85fb10
......@@ -105,6 +105,8 @@ void TracksView::addVideoTrack()
m_layout->insertItem( 0, track );
m_numVideoTrack++;
m_scene->invalidate();
//FIXME this should maybe go elsewhere
setSceneRect( m_layout->contentsRect().adjusted( 0, 0, 100, 100 ) );
}
void TracksView::addAudioTrack()
......@@ -116,6 +118,8 @@ void TracksView::addAudioTrack()
m_layout->insertItem( 1000, track );
m_numAudioTrack++;
m_scene->invalidate();
//FIXME this should maybe go elsewhere
setSceneRect( m_layout->contentsRect().adjusted( 0, 0, 100, 100 ) );
}
void TracksView::dragEnterEvent( QDragEnterEvent* 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