comparison layer/PaintAssistant.h @ 946:36cddc3de023 alignment_view

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 09:19:52 +0100
parents b66fb15de477
children ee01a4062747
comparison
equal deleted inserted replaced
897:499b637f2a26 946:36cddc3de023
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