// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020-2021, The Monero Project. #include "balancedialog.h" #include "ui_balancedialog.h" #include "libwalletqt/WalletManager.h" BalanceDialog::BalanceDialog(QWidget *parent, Wallet *wallet) : QDialog(parent) , ui(new Ui::BalanceDialog) { ui->setupUi(this); ui->label_unconfirmed_help->setHelpText("Outputs require 10 confirmations before they become spendable. " "This will take 20 minutes on average."); ui->label_unconfirmed->setText(WalletManager::displayAmount(wallet->balance() - wallet->unlockedBalance())); ui->label_spendable->setText(WalletManager::displayAmount(wallet->unlockedBalance())); ui->label_total->setText(WalletManager::displayAmount(wallet->balance())); this->adjustSize(); } BalanceDialog::~BalanceDialog() { delete ui; }