Commit 67a47c15 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Timeline: fix a painting bug in the main separator

parent 51727d9a
......@@ -461,12 +461,14 @@ void TracksView::drawBackground( QPainter* painter, const QRectF& rect )
QRectF r = rect;
r.setWidth( r.width() + 1 );
m_separator->setVisible( false );
painter->setWorldMatrixEnabled( false );
painter->setBrush( QBrush( palette().dark().color(), Qt::Dense3Pattern ) );
painter->setPen( Qt::transparent );
painter->drawRect( ( int ) r.left(), ( int ) m_separator->y() + 2, //FIXME this is a hack
( int ) r.right(),
( int ) m_separator->boundingRect().height() );
painter->drawRect( 0,
(int) m_separator->y(),
(int) r.right(),
(int) m_separator->boundingRect().height() );
}
void TracksView::mouseMoveEvent( QMouseEvent* 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