Show $ values next to ZEC amounts

This commit is contained in:
Aditya Kulkarni
2018-10-18 11:30:31 -07:00
parent 1b2335c0d4
commit 02432338cd
6 changed files with 34 additions and 24 deletions

View File

@@ -81,7 +81,7 @@ QVariant BalancesTableModel::data(const QModelIndex &index, int role) const
case 0: return std::get<0>(modeldata->at(index.row()));
case 1: {
auto bal = std::get<1>(modeldata->at(index.row())).toDouble();
return "$ " + QString::number(bal * Settings::getInstance()->getZECPrice(), 'f', 2); // Use 'f' notation to get 2 decimal places
return Settings::getInstance()->getUSDFormat(bal);
}
}
}