diff widgets/AudioDial.h @ 908:4a578a360011 cxx11

More type fixes
author Chris Cannam
date Tue, 10 Mar 2015 13:22:10 +0000
parents 832d246b327b
children a18e78b9c78b
line wrap: on
line diff
--- a/widgets/AudioDial.h	Tue Mar 10 10:31:27 2015 +0000
+++ b/widgets/AudioDial.h	Tue Mar 10 13:22:10 2015 +0000
@@ -73,7 +73,7 @@
 
     void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete
     const RangeMapper *rangeMapper() const { return m_rangeMapper; }
-    float mappedValue() const;
+    double mappedValue() const;
 
     int defaultValue() const { return m_defaultValue; }
 
@@ -107,14 +107,14 @@
 
     void setValue(int value);
 
-    void setDefaultMappedValue(float mappedValue);
+    void setDefaultMappedValue(double mappedValue);
 
-    void setMappedValue(float mappedValue);
+    void setMappedValue(double mappedValue);
 
     void setToDefault();
 
 protected:
-    void drawTick(QPainter &paint, float angle, int size, bool internal);
+    void drawTick(QPainter &paint, double angle, int size, bool internal);
     virtual void paintEvent(QPaintEvent *);
 
     // Alternate mouse behavior event handlers.
@@ -133,8 +133,8 @@
     QColor m_meterColor;
     
     int m_defaultValue;
-    float m_defaultMappedValue;
-    float m_mappedValue;
+    double m_defaultMappedValue;
+    double m_mappedValue;
     bool m_noMappedUpdate;
 
     // Alternate mouse behavior tracking.