refactor: fix deprecation up to Qt 5.15

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2022-05-02 19:10:45 +02:00
parent c1bcbf8c63
commit 984692dc62
54 changed files with 199 additions and 1352 deletions

View File

@ -52,7 +52,7 @@
#include "Application.h"
const static QLatin1Literal defaultLangCode("en_US");
const static QLatin1String defaultLangCode("en_US");
enum class FileType
{
@ -431,9 +431,7 @@ QVariant TranslationsModel::data(const QModelIndex& index, int role) const
}
case Column::Completeness:
{
QString text;
text.sprintf("%3.1f %%", lang.percentTranslated());
return text;
return QString("%1%").arg(lang.percentTranslated(), 3, 'f', 1);
}
}
}