mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-16 08:54:30 -05:00
Use QStringLiteral to concatenate result and unit
This commit is contained in:
parent
1b18c5d51d
commit
ab6222a5f8
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
|
||||||
for (int i = 0; i < unitsSize; i++) {
|
for (int i = 0; i < unitsSize; i++) {
|
||||||
if (resultInt < 1024 || i == unitsSize - 1) {
|
if (resultInt < 1024 || i == unitsSize - 1) {
|
||||||
resultInt = qRound(resultInt * 100) / 100.0;
|
resultInt = qRound(resultInt * 100) / 100.0;
|
||||||
result = QString::number(resultInt) + " " + units[i];
|
result = QStringLiteral("%1 %2").arg(QString::number(resultInt), units[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
resultInt /= 1024.0;
|
resultInt /= 1024.0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue