Mercurial > hg > svgui
comparison layer/PaintAssistant.h @ 905:b66fb15de477 cxx11
Working through the float/double and int/sv_frame_t fixes
author | Chris Cannam |
---|---|
date | Mon, 09 Mar 2015 14:35:21 +0000 |
parents | 8dc50f57d480 |
children | ee01a4062747 |
comparison
equal
deleted
inserted
replaced
904:e0f08e108064 | 905:b66fb15de477 |
---|---|
25 { | 25 { |
26 public: | 26 public: |
27 enum Scale { LinearScale, MeterScale, dBScale }; | 27 enum Scale { LinearScale, MeterScale, dBScale }; |
28 | 28 |
29 static void paintVerticalLevelScale(QPainter &p, QRect rect, | 29 static void paintVerticalLevelScale(QPainter &p, QRect rect, |
30 float minVal, float maxVal, | 30 double minVal, double maxVal, |
31 Scale scale, int &multRtn, | 31 Scale scale, int &multRtn, |
32 std::vector<int> *markCoordRtns = 0); | 32 std::vector<int> *markCoordRtns = 0); |
33 | 33 |
34 static int getYForValue(Scale scale, float value, | 34 static int getYForValue(Scale scale, double value, |
35 float minVal, float maxVal, | 35 double minVal, double maxVal, |
36 int minY, int height); | 36 int minY, int height); |
37 }; | 37 }; |
38 | 38 |
39 #endif | 39 #endif |