Mercurial > hg > svgui
diff view/Pane.h @ 826:43256b925e15 tonioni
Support horizontal two-finger scrolling on Mac, and adjust zoom rate on vertical scroll to make it less crazily fast
author | Chris Cannam |
---|---|
date | Fri, 18 Jul 2014 15:06:04 +0100 |
parents | d974ed657176 |
children | 4a578a360011 |
line wrap: on
line diff
--- a/view/Pane.h Fri Jul 18 11:07:40 2014 +0100 +++ b/view/Pane.h Fri Jul 18 15:06:04 2014 +0100 @@ -113,6 +113,10 @@ virtual void dragEnterEvent(QDragEnterEvent *e); virtual void dropEvent(QDropEvent *e); + void wheelVertical(int sign, Qt::KeyboardModifiers); + void wheelHorizontal(int sign, Qt::KeyboardModifiers); + void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers); + void drawVerticalScale(QRect r, Layer *, QPainter &); void drawFeatureDescription(Layer *, QPainter &); void drawCentreLine(int, QPainter &, bool omitLine); @@ -171,6 +175,8 @@ int m_editingSelectionEdge; mutable int m_scaleWidth; + int m_pendingWheelAngle; + enum DragMode { UnresolvedDrag, VerticalDrag,