mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-26 10:48:33 +01:00
Amount display improvements
This commit is contained in:
@@ -453,15 +453,6 @@ int Utils::maxLength(const QVector<QString> &array) {
|
||||
return maxLength;
|
||||
}
|
||||
|
||||
QString Utils::balanceFormat(quint64 balance) {
|
||||
QString str = QString::number(balance / constants::cdiv, 'f', 4);
|
||||
|
||||
str.remove(QRegExp("0+$"));
|
||||
str.remove(QRegExp("\\.$"));
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
QTextCharFormat Utils::addressTextFormat(const SubaddressIndex &index) {
|
||||
if (index.isPrimary()) {
|
||||
QTextCharFormat rec;
|
||||
|
||||
Reference in New Issue
Block a user