Mercurial > hg > svgui
diff layer/LinearNumericalScale.cpp @ 699:1a1448f7beb2
Pull out colour scale drawing as well
author | Chris Cannam |
---|---|
date | Wed, 04 Dec 2013 13:11:23 +0000 |
parents | ad7623c39396 |
children | 1d526ba11a24 |
line wrap: on
line diff
--- a/layer/LinearNumericalScale.cpp Wed Dec 04 11:35:08 2013 +0000 +++ b/layer/LinearNumericalScale.cpp Wed Dec 04 13:11:23 2013 +0000 @@ -26,7 +26,7 @@ LinearNumericalScale::getWidth(View *v, QPainter &paint) { - return paint.fontMetrics().width("-000.000"); + return paint.fontMetrics().width("-000.00") + 10; } void @@ -95,7 +95,7 @@ paint.drawLine(w - 5, y, w, y); if (drawText) { - paint.drawText(w - paint.fontMetrics().width(label) - 13, + paint.drawText(w - paint.fontMetrics().width(label) - 6, ty, label); }