From cdcba9f68519a53f3218fa02f62ae79ef59abf1f Mon Sep 17 00:00:00 2001 From: Hannu Haahti Date: Mon, 28 Apr 2014 00:38:00 +0300 Subject: [PATCH] SongEditor: change middle click to shift+right click, fix #621 --- src/core/track.cpp | 14 +++++++------- src/tracks/SampleTrack.cpp | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/core/track.cpp b/src/core/track.cpp index a2d56a72f..5aa7a6be2 100644 --- a/src/core/track.cpp +++ b/src/core/track.cpp @@ -532,11 +532,6 @@ void trackContentObjectView::mousePressEvent( QMouseEvent * _me ) } return; } - else if( _me->modifiers() & Qt::ShiftModifier ) - { - // add/remove object to/from selection - selectableObject::mousePressEvent( _me ); - } else if( _me->button() == Qt::LeftButton && _me->modifiers() & Qt::ControlModifier ) { @@ -593,13 +588,13 @@ void trackContentObjectView::mousePressEvent( QMouseEvent * _me ) mouseMoveEvent( _me ); s_textFloat->show(); } - else if( _me->button() == Qt::MidButton ) + else if( _me->button() == Qt::RightButton ) { if( _me->modifiers() & Qt::ControlModifier ) { m_tco->toggleMute(); } - else if( fixedTCOs() == false ) + else if( _me->modifiers() & Qt::ShiftModifier && fixedTCOs() == false ) { remove(); } @@ -771,6 +766,11 @@ void trackContentObjectView::mouseReleaseEvent( QMouseEvent * _me ) */ void trackContentObjectView::contextMenuEvent( QContextMenuEvent * _cme ) { + if( _cme->modifiers() ) + { + return; + } + QMenu contextMenu( this ); if( fixedTCOs() == false ) { diff --git a/src/tracks/SampleTrack.cpp b/src/tracks/SampleTrack.cpp index e71479ad4..2cac87927 100644 --- a/src/tracks/SampleTrack.cpp +++ b/src/tracks/SampleTrack.cpp @@ -231,6 +231,11 @@ void SampleTCOView::updateSample() void SampleTCOView::contextMenuEvent( QContextMenuEvent * _cme ) { + if( _cme->modifiers() ) + { + return; + } + QMenu contextMenu( this ); if( fixedTCOs() == false ) {