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
1 changed files with 1 additions and 1 deletions

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