Commit d1a7fe04 authored by Ludovic Fauvet's avatar Ludovic Fauvet

timeline: fix collision detection under Qt5

parent 7b5a2833
......@@ -630,7 +630,7 @@ TracksView::findPosition( AbstractGraphicsItem *item, qint32 track, qint64 time
if ( qgraphicsitem_cast<GraphicsEffectItem*>( item ) != NULL )
return ItemPosition( track, time );
// Create a fake item for computing collisions
QGraphicsRectItem *chkItem = new QGraphicsRectItem( item->boundingRect() );
QGraphicsRectItem *chkItem = new QGraphicsRectItem( item->boundingRect().adjusted( 0, 1, 0, -1 ) );
chkItem->setParentItem( getTrack( item->trackType(), track ) );
chkItem->setPos( time, 0 );
......
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