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); }
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(); }
void StatsExplorer::on_recomputeButton_clicked() { loadStakeChart(false); }
void ProfitExplorerPage::on_recomputeButton_clicked() { loadStakeChart(false); }