Mercurial > hg > svgui
diff layer/LogNumericalScale.cpp @ 1486:ac0a8addabcf
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:25:16 +0100 |
parents | f2525e6cbdf1 |
children |
line wrap: on
line diff
--- a/layer/LogNumericalScale.cpp Thu Jun 13 15:35:01 2019 +0100 +++ b/layer/LogNumericalScale.cpp Wed Jul 17 14:25:16 2019 +0100 @@ -28,6 +28,11 @@ LogNumericalScale::getWidth(LayerGeometryProvider *, QPainter &paint) { + // Qt 5.13 deprecates QFontMetrics::width(), but its suggested + // replacement (horizontalAdvance) was only added in Qt 5.11 + // which is too new for us +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + return paint.fontMetrics().width("-000.00") + 10; }