comparison layer/LinearNumericalScale.cpp @ 805:1d526ba11a24 warnfix_no_size_t

Remove size_t's and fix warnings in layer/
author Chris Cannam
date Tue, 17 Jun 2014 15:18:06 +0100
parents 1a1448f7beb2
children 3ca3b8fbbcee
comparison
equal deleted inserted replaced
782:ddae586bc47b 805:1d526ba11a24
21 #include <cmath> 21 #include <cmath>
22 22
23 #include "view/View.h" 23 #include "view/View.h"
24 24
25 int 25 int
26 LinearNumericalScale::getWidth(View *v, 26 LinearNumericalScale::getWidth(View *,
27 QPainter &paint) 27 QPainter &paint)
28 { 28 {
29 return paint.fontMetrics().width("-000.00") + 10; 29 return paint.fontMetrics().width("-000.00") + 10;
30 } 30 }
31 31
35 QPainter &paint, 35 QPainter &paint,
36 int x0, 36 int x0,
37 float minf, 37 float minf,
38 float maxf) 38 float maxf)
39 { 39 {
40 int h = v->height();
41
42 int n = 10; 40 int n = 10;
43 41
44 float val = minf; 42 float val = minf;
45 float inc = (maxf - val) / n; 43 float inc = (maxf - val) / n;
46 44