peerplays_migrated/programs/light_client/Balance.cpp
Nathan Hourt 1667a72144 [GUI] Break up ClientDataModel.{c,h}pp into many files
This has been needing to happen. Now it's done. There's no going back.
2015-07-22 11:10:52 -04:00

16 lines
367 B
C++

#include "Balance.hpp"
#include "Asset.hpp"
#include <graphene/chain/account_object.hpp>
qreal Balance::amountReal() const {
return amount / qreal(m_type->precisionPower());
}
void Balance::update(const graphene::chain::account_balance_object& update)
{
if (update.balance != amount) {
amount = update.balance.value;
emit amountChanged();
}
}