Exchanges widget

This commit is contained in:
felixrojauro
2015-11-27 15:43:53 +01:00
parent 18f49ef4e5
commit 59d16a1d12
18 changed files with 1024 additions and 738 deletions

View File

@@ -7,15 +7,20 @@
#include "bitcoinunits.h"
#include "main.h"
#include "qtquick_controls/cpp/guiexchangeswidget.h"
using namespace std;
InfoPage::InfoPage(QWidget *parent) :
QDialog(parent),
exchangesWidget( 0 ),
ui(new Ui::InfoPage)
{
ui->setupUi(this);
ui->casinoInfoBox->setVisible(false);
ui->newsItemsBox->setVisible(false);
createExchangesWidget();
}
void InfoPage::setWalletModel(WalletModel *model)
@@ -105,5 +110,12 @@ double InfoPage::GetNetworkHashRate(int lookup, int height) {
InfoPage::~InfoPage()
{
delete ui;
delete ui;
}
void InfoPage::createExchangesWidget()
{
exchangesWidget = new GUIExchangesWidget( this );
exchangesWidget->PopulateExchangesFromWeb();
ui->verticalLayoutExchanges->addWidget( exchangesWidget->dockQmlToWidget() );
}