Mercurial > hg > svgui
diff view/Pane.cpp @ 510:683c46d7500b
* Handle zero-velocity note ons as well as note offs (can't believe I
fell for that one)
* Add Peek Left / Peek Right (alt+left/right) and change peek-drag
(i.e. dragging without moving playback pointer or other panes) from
ctrl+drag to alt+drag for symmetry
author | Chris Cannam |
---|---|
date | Thu, 26 Feb 2009 10:49:08 +0000 |
parents | 1d605a89fd9b |
children | 3b345b9a4575 |
line wrap: on
line diff
--- a/view/Pane.cpp Wed Feb 25 17:41:34 2009 +0000 +++ b/view/Pane.cpp Thu Feb 26 10:49:08 2009 +0000 @@ -64,6 +64,7 @@ m_clickedInRange(false), m_shiftPressed(false), m_ctrlPressed(false), + m_altPressed(false), m_navigating(false), m_resizing(false), m_editing(false), @@ -1237,6 +1238,7 @@ m_editingSelectionEdge = 0; m_shiftPressed = (e->modifiers() & Qt::ShiftModifier); m_ctrlPressed = (e->modifiers() & Qt::ControlModifier); + m_altPressed = (e->modifiers() & Qt::AltModifier); m_dragMode = UnresolvedDrag; ViewManager::ToolMode mode = ViewManager::NavigateMode; @@ -1739,7 +1741,7 @@ } if (getXForFrame(m_centreFrame) != getXForFrame(newCentreFrame)) { - setCentreFrame(newCentreFrame, !m_ctrlPressed); + setCentreFrame(newCentreFrame, !m_altPressed); } } @@ -1925,6 +1927,7 @@ m_clickedInRange = true; m_shiftPressed = (e->modifiers() & Qt::ShiftModifier); m_ctrlPressed = (e->modifiers() & Qt::ControlModifier); + m_altPressed = (e->modifiers() & Qt::AltModifier); ViewManager::ToolMode mode = ViewManager::NavigateMode; if (m_manager) mode = m_manager->getToolMode();