double click in the note edit area to clear selected notes (allowing you to edit note velocities/panning for all notes)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1928 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-15 03:10:49 +00:00
parent 51fe26738d
commit ecfb18d551
4 changed files with 30 additions and 3 deletions

View File

@@ -1556,6 +1556,24 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me )
void pianoRoll::mouseDoubleClickEvent( QMouseEvent * _me )
{
if( validPattern() == false )
{
return;
}
// if they clicked in the note edit area, clear selection
if( _me->x() > noteEditLeft() && _me->x() < noteEditRight()
&& _me->y() > noteEditTop() && _me->y() < noteEditBottom() )
{
clearSelectedNotes();
}
}
void pianoRoll::testPlayNote( note * n )
{
m_lastKey = n->key();