SongEditor: change middle click to shift+right click, fix #621
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -231,6 +231,11 @@ void SampleTCOView::updateSample()
|
||||
|
||||
void SampleTCOView::contextMenuEvent( QContextMenuEvent * _cme )
|
||||
{
|
||||
if( _cme->modifiers() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QMenu contextMenu( this );
|
||||
if( fixedTCOs() == false )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user