mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
When calling arg() on a QString constructed from a literal, use QStringLiteral.
This commit is contained in:
@@ -982,10 +982,9 @@ namespace BlackGui
|
||||
|
||||
QString CGuiApplication::getFontInfo() const
|
||||
{
|
||||
static const QString info("Family: '%1', average width: %2");
|
||||
const QWidget *w = this->mainApplicationWidget();
|
||||
if (!w) { return QStringLiteral("Font info not available"); }
|
||||
return info.
|
||||
return QStringLiteral("Family: '%1', average width: %2").
|
||||
arg(w->font().family()).
|
||||
arg(w->fontMetrics().averageCharWidth());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user