Mercurial > hg > svgui
diff layer/LinearColourScale.cpp @ 918:4fe7a09be0fe osx-retina
Many fixes for the previous stuff
author | Chris Cannam |
---|---|
date | Tue, 17 Mar 2015 16:56:03 +0000 |
parents | b66fb15de477 |
children | 5144d7185fb5 |
line wrap: on
line diff
--- a/layer/LinearColourScale.cpp Tue Mar 17 16:33:51 2015 +0000 +++ b/layer/LinearColourScale.cpp Tue Mar 17 16:56:03 2015 +0000 @@ -20,24 +20,24 @@ #include <cmath> -#include "view/View.h" +#include "view/LayerGeometryProvider.h" int -LinearColourScale::getWidth(View *, +LinearColourScale::getWidth(LayerGeometryProvider *, QPainter &paint) { return paint.fontMetrics().width("-000.00") + 15; } void -LinearColourScale::paintVertical(View *v, +LinearColourScale::paintVertical(LayerGeometryProvider *v, const ColourScaleLayer *layer, QPainter &paint, int /* x0 */, double min, double max) { - int h = v->height(); + int h = v->getPaintHeight(); int n = 10;