Reinstate Double Click opening the piano roll from song editor

This fixes a bug introduced when removing double click from
BB patterns. It Now checks if we use fixedTCO's (bb tomb stones),
only disable double clikc if so, leaving it working correcly in the
song editor
This commit is contained in:
Dave French
2015-03-01 13:42:07 +00:00
parent fe797cb09f
commit 6ad5d88c08
2 changed files with 14 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ protected slots:
protected:
virtual void constructContextMenu( QMenu * );
virtual void mousePressEvent( QMouseEvent * _me );
virtual void mouseDoubleClickEvent( QMouseEvent * _me );
virtual void paintEvent( QPaintEvent * _pe );
virtual void resizeEvent( QResizeEvent * _re )
{

View File

@@ -846,6 +846,19 @@ void PatternView::mousePressEvent( QMouseEvent * _me )
}
}
void PatternView::mouseDoubleClickEvent(QMouseEvent *_me)
{
if( _me->button() != Qt::LeftButton )
{
_me->ignore();
return;
}
if( !fixedTCOs() )
{
openInPianoRoll();
}
}