mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
GUI: Overview: Use formatted amount text from TransactionTableModel
This commit is contained in:
parent
eef551a588
commit
2bcd24313d
1 changed files with 1 additions and 5 deletions
|
|
@ -88,11 +88,7 @@ public:
|
|||
foreground = option.palette.color(QPalette::Text);
|
||||
}
|
||||
painter->setPen(foreground);
|
||||
QString amountText = BitcoinUnits::formatWithUnit(unit, amount, true, BitcoinUnits::separatorAlways);
|
||||
if(!confirmed)
|
||||
{
|
||||
amountText = QString("[") + amountText + QString("]");
|
||||
}
|
||||
QString amountText = index.sibling(index.row(), TransactionTableModel::Amount).data(Qt::DisplayRole).toString();
|
||||
painter->drawText(amountRect, Qt::AlignRight|Qt::AlignVCenter, amountText);
|
||||
|
||||
painter->setPen(option.palette.color(QPalette::Text));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue