diff widgets/LevelPanWidget.h @ 1200:808d375a3b12 levelpanwidget

Support mouse wheel on level-pan tool button
author Chris Cannam
date Fri, 16 Dec 2016 16:29:53 +0000
parents 6a6a63506e3f
children a68c25ba1153
line wrap: on
line diff
--- a/widgets/LevelPanWidget.h	Fri Dec 16 15:55:59 2016 +0000
+++ b/widgets/LevelPanWidget.h	Fri Dec 16 16:29:53 2016 +0000
@@ -62,6 +62,9 @@
     /// Specify whether the level range should include muting or not
     void setIncludeMute(bool);
     
+    // public so it can be called from LevelPanToolButton (ew)
+    virtual void wheelEvent(QWheelEvent *ev);
+    
 signals:
     void levelChanged(float); // range [0,1]
     void panChanged(float); // range [-1,1]
@@ -73,7 +76,6 @@
     virtual void mousePressEvent(QMouseEvent *ev);
     virtual void mouseMoveEvent(QMouseEvent *ev);
     virtual void mouseReleaseEvent(QMouseEvent *ev);
-    virtual void wheelEvent(QWheelEvent *ev);
     virtual void paintEvent(QPaintEvent *ev);
     virtual void enterEvent(QEvent *);
     virtual void leaveEvent(QEvent *);