mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +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);
|
foreground = option.palette.color(QPalette::Text);
|
||||||
}
|
}
|
||||||
painter->setPen(foreground);
|
painter->setPen(foreground);
|
||||||
QString amountText = BitcoinUnits::formatWithUnit(unit, amount, true, BitcoinUnits::separatorAlways);
|
QString amountText = index.sibling(index.row(), TransactionTableModel::Amount).data(Qt::DisplayRole).toString();
|
||||||
if(!confirmed)
|
|
||||||
{
|
|
||||||
amountText = QString("[") + amountText + QString("]");
|
|
||||||
}
|
|
||||||
painter->drawText(amountRect, Qt::AlignRight|Qt::AlignVCenter, amountText);
|
painter->drawText(amountRect, Qt::AlignRight|Qt::AlignVCenter, amountText);
|
||||||
|
|
||||||
painter->setPen(option.palette.color(QPalette::Text));
|
painter->setPen(option.palette.color(QPalette::Text));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue