Merge pull request #1801 from curlymorphic/doubleSong
Reinstate Double Click opening the piano roll from song editor
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user