Ejemplo n.º 1
0
StatsExplorer::StatsExplorer(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::StatsExplorer)
{
    ui->setupUi(this);
    loadStakeChart(true);

    connect(&updateTimer, SIGNAL(timeout()), this, SLOT(updateTimer_timeout()));
    updateTimer.setInterval(60000); // every 60 seconds (approx 2 blocks)
    updateTimer.start();
}
Ejemplo n.º 2
0
ProfitExplorerPage::ProfitExplorerPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ProfitExplorerPage)
{
    ui->setupUi(this);

    // staking settings
    QSettings settings;
    nPreferredBlockSize = settings.value("nPreferredBlockSize", (qint64) (618 * COIN)).toLongLong();
    ui->blockSizeSpinBox->setValue(nPreferredBlockSize / COIN);
    connect(ui->blockSizeSpinBox, SIGNAL(valueChanged(int)), this, SLOT(blockSize_valueChanged(int)));

    ui->optimizeCheckBox->setChecked( settings.value("bAutoOptimize", false).toBool() );

    loadStakeChart(true);

    connect(&updateTimer, SIGNAL(timeout()), this, SLOT(updateTimer_timeout()));
    updateTimer.setInterval(123000); // every 123 seconds (approx 2 blocks)
    updateTimer.start();
}