You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
787 B
33 lines
787 B
14 years ago
|
#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"));
|
||
|
}
|