示例#1
0
void StatsExplorer::updateTimer_timeout()
{
    // if(fShutdown)
    // return;

    if(ui->checkBox->isChecked())
        loadStakeChart(false);
}
void ProfitExplorerPage::updateTimer_timeout()
{
    if(fShutdown)
	return;

    if(ui->checkBox->isChecked())
        loadStakeChart(false);
}
示例#3
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();
}
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();
}
示例#5
0
void StatsExplorer::on_recomputeButton_clicked()
{
    loadStakeChart(false);
}
void ProfitExplorerPage::on_recomputeButton_clicked()
{
    loadStakeChart(false);
}