comparison 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
comparison
equal deleted inserted replaced
255:e175ade2d6b0 256:c492902dba40
1477 setCentreFrame(getModelsEndFrame()); 1477 setCentreFrame(getModelsEndFrame());
1478 } else { 1478 } else {
1479 setCentreFrame(m_centreFrame - delta); 1479 setCentreFrame(m_centreFrame - delta);
1480 } 1480 }
1481 1481
1482 } else if (e->modifiers() & Qt::ShiftModifier) {
1483
1484 // Zoom vertically
1485
1486 if (m_vpan) {
1487 m_vpan->scroll(e->delta() > 0);
1488 }
1489
1490 } else if (e->modifiers() & Qt::AltModifier) {
1491
1492 // Zoom vertically
1493
1494 if (m_vthumb) {
1495 m_vthumb->scroll(e->delta() > 0);
1496 }
1497
1482 } else { 1498 } else {
1483 1499
1484 // Zoom in or out 1500 // Zoom in or out
1485 1501
1486 int newZoomLevel = m_zoomLevel; 1502 int newZoomLevel = m_zoomLevel;