From 01227143acaadf036e8f8772c3337809a0c87230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Sun, 25 Sep 2022 20:05:09 +0200 Subject: [PATCH] Replace deprecated FontMetrics.width() with horizontalAdvance --- sdrgui/gui/scaleengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/scaleengine.cpp b/sdrgui/gui/scaleengine.cpp index d5f30f8e7..c096a16f7 100644 --- a/sdrgui/gui/scaleengine.cpp +++ b/sdrgui/gui/scaleengine.cpp @@ -92,7 +92,7 @@ void ScaleEngine::calcCharSize() float size; float max = 0.0f; for(i = 0; i < str.length(); i++) { - size = fontMetrics.width(QString(str[i])); + size = fontMetrics.horizontalAdvance(QString(str[i])); if(size > max) max = size; }