Mercurial > hg > svgui
diff widgets/LevelPanWidget.h @ 1303:13f5f84fbfad
Collect the bits of bookkeeping for mouse wheel events, and use in all widgets
author | Chris Cannam |
---|---|
date | Fri, 22 Jun 2018 17:19:48 +0100 |
parents | f3d3fab250ac |
children | a575dae05fbf |
line wrap: on
line diff
--- a/widgets/LevelPanWidget.h Fri Jun 22 13:41:54 2018 +0100 +++ b/widgets/LevelPanWidget.h Fri Jun 22 17:19:48 2018 +0100 @@ -17,6 +17,8 @@ #include <QWidget> +#include "WheelCounter.h" + /** * A simple widget for coarse level and pan control. */ @@ -98,7 +100,8 @@ bool m_editing; bool m_includeMute; bool m_includeHalfSteps; - int m_pendingWheelAngle; + + WheelCounter m_wheelCounter; int clampNotch(int notch) const; int clampPan(int pan) const;