mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-18 06:12:47 -04: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 size;
|
||||||
float max = 0.0f;
|
float max = 0.0f;
|
||||||
for(i = 0; i < str.length(); i++) {
|
for(i = 0; i < str.length(); i++) {
|
||||||
size = fontMetrics.width(QString(str[i]));
|
size = fontMetrics.horizontalAdvance(QString(str[i]));
|
||||||
if(size > max)
|
if(size > max)
|
||||||
max = size;
|
max = size;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user