mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-23 18:18:32 +02:00
Move cdiv to globals.h
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "TransactionHistoryModel.h"
|
||||
#include "TransactionHistory.h"
|
||||
#include "TransactionInfo.h"
|
||||
#include "globals.h"
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
@@ -151,7 +152,7 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
|
||||
}
|
||||
case Column::Amount:
|
||||
{
|
||||
QString amount = QString::number(tInfo.atomicAmount() / 1e12, 'f', 4);
|
||||
QString amount = QString::number(tInfo.atomicAmount() / globals::cdiv, 'f', 4);
|
||||
amount = (tInfo.direction() == TransactionInfo::Direction_Out && tInfo.amount() > 0) ? "-" + amount : "+" + amount;
|
||||
return amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user