Mercurial > hg > svgui
comparison layer/LogColourScale.cpp @ 1471:f2525e6cbdf1 by-id
More layer updates
author | Chris Cannam |
---|---|
date | Mon, 01 Jul 2019 14:17:13 +0100 |
parents | a34a2a25907c |
children |
comparison
equal
deleted
inserted
replaced
1470:696e569ff21b | 1471:f2525e6cbdf1 |
---|---|
26 | 26 |
27 int | 27 int |
28 LogColourScale::getWidth(LayerGeometryProvider *, | 28 LogColourScale::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") + 15; | 36 return paint.fontMetrics().width("-000.00") + 15; |
32 } | 37 } |
33 | 38 |
34 void | 39 void |
35 LogColourScale::paintVertical(LayerGeometryProvider *v, | 40 LogColourScale::paintVertical(LayerGeometryProvider *v, |