1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 10:33:29 -05:00

Replace deprecated FontMetrics.width() with horizontalAdvance

This commit is contained in:
Jiří Pinkava 2022-09-25 20:05:09 +02:00
parent a84f2c0aeb
commit 01227143ac

View File

@ -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;
}