fixed ctrl+mousewheel zooming in on piano roll

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1922 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-14 11:10:21 +00:00
parent 167180e670
commit 1b62bea839
3 changed files with 2 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
- note volume bars are painted blue if selected
- dragging around a note in the piano roll makes the correct volume
and panning noises
- fixed Ctrl+Scroll to zoom in
* include/panning.h:
added panningToMidi function to easily convert panning to a midi value

1
TODO
View File

@@ -52,7 +52,6 @@
- add FLAC as export-format?
Andrew Kelley's todo:
- fix ctrl+mousewheel zooming in
- if you press both controls at the same time, the piano roll gets stuck in selection mode
- change my modifier code to use mainwindows modifier info
- multiview button - show notes from every instrument in the current beat+bassline with different colors

View File

@@ -2761,7 +2761,7 @@ void pianoRoll::resizeEvent( QResizeEvent * )
void pianoRoll::wheelEvent( QWheelEvent * _we )
{
_we->accept();
if( engine::getMainWindow()->isCtrlPressed() == true )
if( _we->modifiers() & Qt::ControlModifier )
{
if( _we->delta() > 0 )
{