Timeline: additionally allow moving left loop point with middle mouse button
Commit 3a53473d10 aimed at allowing users
without a middle mouse button (like on touchpads) to move the left loop
point. However nothing stops us from keeping the old behaviour as well,
so here we go!
This commit is contained in:
@@ -283,14 +283,14 @@ void timeLine::mousePressEvent( QMouseEvent* event )
|
||||
m_moveXOff = s_posMarkerPixmap->width() / 2;
|
||||
}
|
||||
}
|
||||
else if( event->button() == Qt::RightButton )
|
||||
else if( event->button() == Qt::RightButton || event->button() == Qt::MiddleButton )
|
||||
{
|
||||
const MidiTime t = m_begin + static_cast<int>( event->x() * MidiTime::ticksPerTact() / m_ppt );
|
||||
if( m_loopPos[0] > m_loopPos[1] )
|
||||
{
|
||||
qSwap( m_loopPos[0], m_loopPos[1] );
|
||||
}
|
||||
if( event->modifiers() & Qt::ShiftModifier )
|
||||
if( ( event->modifiers() & Qt::ShiftModifier ) || event->button() == Qt::MiddleButton )
|
||||
{
|
||||
m_action = MoveLoopBegin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user