comparison layer/LogNumericalScale.cpp @ 1471:f2525e6cbdf1 by-id

More layer updates
author Chris Cannam
date Mon, 01 Jul 2019 14:17:13 +0100
parents fc9d9f1103fa
children
comparison
equal deleted inserted replaced
1470:696e569ff21b 1471:f2525e6cbdf1
26 26
27 int 27 int
28 LogNumericalScale::getWidth(LayerGeometryProvider *, 28 LogNumericalScale::getWidth(LayerGeometryProvider *,
29 QPainter &paint) 29 QPainter &paint)
30 { 30 {
31 // Qt 5.13 deprecates QFontMetrics::width(), but its suggested
32 // replacement (horizontalAdvance) was only added in Qt 5.11
33 // which is too new for us
34 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35
31 return paint.fontMetrics().width("-000.00") + 10; 36 return paint.fontMetrics().width("-000.00") + 10;
32 } 37 }
33 38
34 void 39 void
35 LogNumericalScale::paintVertical(LayerGeometryProvider *v, 40 LogNumericalScale::paintVertical(LayerGeometryProvider *v,