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:
parent
a84f2c0aeb
commit
01227143ac
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user