Updated UserInterface

This commit is contained in:
Andre Jochems
2016-06-02 20:30:07 +02:00
parent 1a5784fa8b
commit 1b7473bcb2
7 changed files with 433 additions and 581 deletions

View File

@@ -25,12 +25,6 @@ InfoPage::InfoPage(QWidget *parent) :
void InfoPage::setWalletModel(WalletModel *model)
{
this->walletModel = model;
if(model)
{
// subscribe to transaction changes
connect(model, SIGNAL(numTransactionsChanged(int)), this, SLOT(setNumTransactions(int)));
setNumTransactions(model->getNumTransactions());
}
}
void InfoPage::setClientModel(ClientModel *model)
@@ -65,11 +59,6 @@ void InfoPage::setNumBlocks(int count, int countOfPeers)
}
}
void InfoPage::setNumTransactions(int count)
{
ui->txtTransactionCount->setText(QString::number(count));
}
double InfoPage::GetNetworkHashRate(int lookup, int height) {
CBlockIndex *pb = pindexBest;
@@ -119,7 +108,8 @@ void InfoPage::createExchangesWidget()
ui->verticalLayoutExchanges->addWidget( exchangesWidget->dockQmlToWidget() );
}
void InfoPage::setCoinFiatValue(QString coinValue)
void InfoPage::setCoinValues(QString coinValue, QString coinFiatValue)
{
ui->txtCoinFiatValue->setText(coinValue);
ui->txtCoinValue->setText(coinValue);
ui->txtCoinFiatValue->setText(coinFiatValue);
}