Commit 4deb5be2 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Adjust the default size of the tracks

parent dda23ab9
......@@ -70,11 +70,14 @@ TracksView::TracksView( QGraphicsScene* scene, MainWorkflow* mainWorkflow, QWidg
void TracksView::createLayout()
{
m_layout = new QGraphicsLinearLayout( Qt::Vertical );
m_layout->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
m_layout->setContentsMargins( 0, 0, 0, 0 );
m_layout->setSpacing( 0 );
QGraphicsWidget* container = new QGraphicsWidget();
container->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
container->setContentsMargins( 0, 0, 0, 0 );
container->setPreferredWidth( 0 );
container->setLayout( m_layout );
addVideoTrack();
......
......@@ -46,6 +46,7 @@ public:
protected:
virtual void paint( QPainter* painter, const QStyleOptionGraphicsItem*, QWidget* = 0 )
{
painter->setPen( Qt::transparent );
painter->setBrush( Qt::cyan );
painter->drawRect( rect() );
}
......
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