Commit b5885655 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Code simplification

parent 4de066eb
......@@ -41,6 +41,9 @@ public:
{
m_type = type;
m_trackNumber = trackNumber;
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
setContentsMargins( 0, 0, 0, 0 );
setZValue( 1 );
}
quint32 trackNumber()
......
......@@ -100,9 +100,7 @@ void TracksView::createLayout()
void TracksView::addVideoTrack()
{
GraphicsTrack* track = new GraphicsTrack( GraphicsTrack::Video, m_numVideoTrack );
track->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
track->setPreferredHeight( m_tracksHeight );
track->setContentsMargins( 0, 0, 0, 0 );
m_layout->insertItem( 0, track );
m_numVideoTrack++;
m_scene->invalidate();
......@@ -113,9 +111,7 @@ void TracksView::addVideoTrack()
void TracksView::addAudioTrack()
{
GraphicsTrack* track = new GraphicsTrack( GraphicsTrack::Audio, 0 );
track->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
track->setPreferredHeight( m_tracksHeight );
track->setContentsMargins( 0, 0, 0, 0 );
m_layout->insertItem( 1000, track );
m_numAudioTrack++;
m_scene->invalidate();
......
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