QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
0695552cff
commit
c275b35d48
@@ -455,7 +455,7 @@ void ViewProviderAnnotationLabel::drawImage(const std::vector<std::string>& s)
|
||||
return;
|
||||
}
|
||||
|
||||
QFont font(QString::fromAscii(this->FontName.getValue()), (int)this->FontSize.getValue());
|
||||
QFont font(QString::fromLatin1(this->FontName.getValue()), (int)this->FontSize.getValue());
|
||||
QFontMetrics fm(font);
|
||||
int w = 0;
|
||||
int h = fm.height() * s.size();
|
||||
|
||||
Reference in New Issue
Block a user