mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-21 00:58:40 +02:00
TxConfDialog: Justify amounts
This commit is contained in:
@@ -576,4 +576,15 @@ QString Utils::amountToCurrencyString(double amount, const QString ¤cyCode
|
||||
return locale.toCurrencyString(amount, "$");
|
||||
|
||||
return locale.toCurrencyString(amount);
|
||||
}
|
||||
|
||||
int Utils::maxLength(const QVector<QString> &array) {
|
||||
int maxLength = 0;
|
||||
for (const auto &str: array) {
|
||||
auto length = str.length();
|
||||
if (length > maxLength) {
|
||||
maxLength = length;
|
||||
}
|
||||
}
|
||||
return maxLength;
|
||||
}
|
||||
Reference in New Issue
Block a user