comparison widgets/Thumbwheel.h @ 908:4a578a360011 cxx11

More type fixes
author Chris Cannam
date Tue, 10 Mar 2015 13:22:10 +0000
parents 06b5f110c5d2
children 13f5f84fbfad
comparison
equal deleted inserted replaced
907:28d05ae8741c 908:4a578a360011
39 bool getShowScale() const; 39 bool getShowScale() const;
40 int getValue() const; 40 int getValue() const;
41 41
42 void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete 42 void setRangeMapper(RangeMapper *mapper); // I take ownership, will delete
43 const RangeMapper *getRangeMapper() const { return m_rangeMapper; } 43 const RangeMapper *getRangeMapper() const { return m_rangeMapper; }
44 float getMappedValue() const; 44 double getMappedValue() const;
45 45
46 void setShowToolTip(bool show); 46 void setShowToolTip(bool show);
47 47
48 QSize sizeHint() const; 48 QSize sizeHint() const;
49 49
59 void setDefaultValue(int deft); 59 void setDefaultValue(int deft);
60 void setSpeed(float speed); 60 void setSpeed(float speed);
61 void setTracking(bool tracking); 61 void setTracking(bool tracking);
62 void setShowScale(bool show); 62 void setShowScale(bool show);
63 void setValue(int value); 63 void setValue(int value);
64 void setMappedValue(float mappedValue); 64 void setMappedValue(double mappedValue);
65 void scroll(bool up); 65 void scroll(bool up);
66 void resetToDefault(); 66 void resetToDefault();
67 67
68 protected slots: 68 protected slots:
69 void updateMappedValue(int value); 69 void updateMappedValue(int value);
80 80
81 int m_min; 81 int m_min;
82 int m_max; 82 int m_max;
83 int m_default; 83 int m_default;
84 int m_value; 84 int m_value;
85 float m_mappedValue; 85 double m_mappedValue;
86 bool m_noMappedUpdate; 86 bool m_noMappedUpdate;
87 float m_rotation; 87 float m_rotation;
88 Qt::Orientation m_orientation; 88 Qt::Orientation m_orientation;
89 float m_speed; 89 float m_speed;
90 bool m_tracking; 90 bool m_tracking;