mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
33 lines
787 B
C++
33 lines
787 B
C++
|
#include "overviewpage.h"
|
||
|
#include "ui_overviewpage.h"
|
||
|
|
||
|
#include "guiutil.h"
|
||
|
|
||
|
OverviewPage::OverviewPage(QWidget *parent) :
|
||
|
QWidget(parent),
|
||
|
ui(new Ui::OverviewPage)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
|
||
|
// Balance: <balance>
|
||
|
ui->labelBalance->setFont(QFont("Monospace", -1, QFont::Bold));
|
||
|
ui->labelBalance->setToolTip(tr("Your current balance"));
|
||
|
ui->labelBalance->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
|
||
|
|
||
|
// Overview page should show:
|
||
|
// Balance
|
||
|
// Unconfirmed balance
|
||
|
// Last received transaction(s)
|
||
|
// Last sent transaction(s)
|
||
|
}
|
||
|
|
||
|
OverviewPage::~OverviewPage()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void OverviewPage::setBalance(qint64 balance)
|
||
|
{
|
||
|
ui->labelBalance->setText(GUIUtil::formatMoney(balance) + QString(" BTC"));
|
||
|
}
|