|
|
@ -72,7 +72,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, true); |
|
|
|
QString amountText = BitcoinUnits::formatWithUnit(unit, amount, true, BitcoinUnits::separatorAlways); |
|
|
|
if(!confirmed) |
|
|
|
if(!confirmed) |
|
|
|
{ |
|
|
|
{ |
|
|
|
amountText = QString("[") + amountText + QString("]"); |
|
|
|
amountText = QString("[") + amountText + QString("]"); |
|
|
@ -147,14 +147,14 @@ void OverviewPage::setBalance(qint64 balance, qint64 unconfirmedBalance, qint64 |
|
|
|
currentWatchOnlyBalance = watchOnlyBalance; |
|
|
|
currentWatchOnlyBalance = watchOnlyBalance; |
|
|
|
currentWatchUnconfBalance = watchUnconfBalance; |
|
|
|
currentWatchUnconfBalance = watchUnconfBalance; |
|
|
|
currentWatchImmatureBalance = watchImmatureBalance; |
|
|
|
currentWatchImmatureBalance = watchImmatureBalance; |
|
|
|
ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelUnconfirmed->setText(BitcoinUnits::formatWithUnit(unit, unconfirmedBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelUnconfirmed->setText(BitcoinUnits::formatWithUnit(unit, unconfirmedBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelImmature->setText(BitcoinUnits::formatWithUnit(unit, immatureBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelImmature->setText(BitcoinUnits::formatWithUnit(unit, immatureBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelTotal->setText(BitcoinUnits::formatWithUnit(unit, balance + unconfirmedBalance + immatureBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelTotal->setText(BitcoinUnits::formatWithUnit(unit, balance + unconfirmedBalance + immatureBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelWatchAvailable->setText(BitcoinUnits::formatWithUnit(unit, watchOnlyBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelWatchAvailable->setText(BitcoinUnits::formatWithUnit(unit, watchOnlyBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelWatchPending->setText(BitcoinUnits::formatWithUnit(unit, watchUnconfBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelWatchPending->setText(BitcoinUnits::formatWithUnit(unit, watchUnconfBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelWatchImmature->setText(BitcoinUnits::formatWithUnit(unit, watchImmatureBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelWatchImmature->setText(BitcoinUnits::formatWithUnit(unit, watchImmatureBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
ui->labelWatchTotal->setText(BitcoinUnits::formatWithUnit(unit, watchOnlyBalance + watchUnconfBalance + watchImmatureBalance, false, BitcoinUnits::separatorAlways, true)); |
|
|
|
ui->labelWatchTotal->setText(BitcoinUnits::formatWithUnit(unit, watchOnlyBalance + watchUnconfBalance + watchImmatureBalance, false, BitcoinUnits::separatorAlways)); |
|
|
|
|
|
|
|
|
|
|
|
// only show immature (newly mined) balance if it's non-zero, so as not to complicate things
|
|
|
|
// only show immature (newly mined) balance if it's non-zero, so as not to complicate things
|
|
|
|
// for the non-mining users
|
|
|
|
// for the non-mining users
|
|
|
|