Commit 56b1d12b authored by Ludovic Fauvet's avatar Ludovic Fauvet

Reactivate some mouse functionnalities

parent c992aa53
......@@ -305,7 +305,7 @@ void TracksView::mouseMoveEvent( QMouseEvent* event )
void TracksView::mousePressEvent( QMouseEvent* event )
{
/*QList<QGraphicsItem*> collisionList = items( event->pos() );
QList<QGraphicsItem*> collisionList = items( event->pos() );
if ( event->modifiers() == Qt::ControlModifier && collisionList.count() == 0 )
{
......@@ -314,22 +314,22 @@ void TracksView::mousePressEvent( QMouseEvent* event )
return;
}
if ( event->modifiers() & Qt::ShiftModifier && collisionList.count() == 0 )
/*if ( event->modifiers() & Qt::ShiftModifier && collisionList.count() == 0 )
{
setDragMode( QGraphicsView::RubberBandDrag );
if ( !event->modifiers() & Qt::ControlModifier )
scene()->clearSelection();
QGraphicsView::mousePressEvent( event );
return;
}
}*/
QGraphicsView::mousePressEvent( event );*/
QGraphicsView::mousePressEvent( event );
}
void TracksView::mouseReleaseEvent( QMouseEvent* event )
{
/*setDragMode( QGraphicsView::NoDrag );
QGraphicsView::mouseReleaseEvent( event );*/
setDragMode( QGraphicsView::NoDrag );
QGraphicsView::mouseReleaseEvent( event );
}
void TracksView::wheelEvent( QWheelEvent* 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