BalanceDialog: use monospace font

This commit is contained in:
tobtoht 2021-07-08 13:20:41 +02:00
parent 86e81ca3fc
commit 7975c311b5
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -5,6 +5,7 @@
#include "ui_BalanceDialog.h"
#include "libwalletqt/WalletManager.h"
#include "model/ModelUtils.h"
BalanceDialog::BalanceDialog(QWidget *parent, Wallet *wallet)
: QDialog(parent)
@ -16,8 +17,13 @@ BalanceDialog::BalanceDialog(QWidget *parent, Wallet *wallet)
"This will take 20 minutes on average.");
ui->label_unconfirmed->setText(WalletManager::displayAmount(wallet->balance() - wallet->unlockedBalance()));
ui->label_unconfirmed->setFont(ModelUtils::getMonospaceFont());
ui->label_spendable->setText(WalletManager::displayAmount(wallet->unlockedBalance()));
ui->label_spendable->setFont(ModelUtils::getMonospaceFont());
ui->label_total->setText(WalletManager::displayAmount(wallet->balance()));
ui->label_total->setFont(ModelUtils::getMonospaceFont());
this->adjustSize();
}