diff widgets/Thumbwheel.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 4a578a360011
children a18e78b9c78b
line wrap: on
line diff
--- a/widgets/Thumbwheel.h	Fri Jun 22 13:41:54 2018 +0100
+++ b/widgets/Thumbwheel.h	Fri Jun 22 17:19:48 2018 +0100
@@ -13,14 +13,16 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _THUMBWHEEL_H_
-#define _THUMBWHEEL_H_
+#ifndef SV_THUMBWHEEL_H
+#define SV_THUMBWHEEL_H
 
 #include <QWidget>
 #include <QImage>
 
 #include <map>
 
+#include "WheelCounter.h"
+
 class RangeMapper;
 
 class Thumbwheel : public QWidget
@@ -96,6 +98,7 @@
     bool m_showTooltip;
     RangeMapper *m_rangeMapper;
     QImage m_cache;
+    WheelCounter m_wheelCounter;
 };
 
 #endif