mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 06:26:11 -05:00
Use QStringLiteral to concatenate result and unit
This commit is contained in:
parent
1b18c5d51d
commit
ab6222a5f8
@ -230,7 +230,7 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
|
||||
for (int i = 0; i < unitsSize; i++) {
|
||||
if (resultInt < 1024 || i == unitsSize - 1) {
|
||||
resultInt = qRound(resultInt * 100) / 100.0;
|
||||
result = QString::number(resultInt) + " " + units[i];
|
||||
result = QStringLiteral("%1 %2").arg(QString::number(resultInt), units[i]);
|
||||
break;
|
||||
}
|
||||
resultInt /= 1024.0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user