Mercurial > hg > svgui
diff view/Pane.cpp @ 256:c492902dba40
* Make shift+mousewheel scroll vertically (where applicable) and alt+mousewheel
zoom vertically (where applicable). Closes #1734844
author | Chris Cannam |
---|---|
date | Wed, 13 Jun 2007 10:27:39 +0000 |
parents | e175ade2d6b0 |
children | 1ab41ee36952 |
line wrap: on
line diff
--- a/view/Pane.cpp Wed Jun 13 09:19:33 2007 +0000 +++ b/view/Pane.cpp Wed Jun 13 10:27:39 2007 +0000 @@ -1479,6 +1479,22 @@ setCentreFrame(m_centreFrame - delta); } + } else if (e->modifiers() & Qt::ShiftModifier) { + + // Zoom vertically + + if (m_vpan) { + m_vpan->scroll(e->delta() > 0); + } + + } else if (e->modifiers() & Qt::AltModifier) { + + // Zoom vertically + + if (m_vthumb) { + m_vthumb->scroll(e->delta() > 0); + } + } else { // Zoom in or out