void OptionsDialog::setModel(OptionsModel *model) { this->model = model; if(model) { connect(model, SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); mapper->setModel(model); setMapper(); mapper->toFirst(); } /* update the display unit, to not use the default ("BTC") */ updateDisplayUnit(); /* warn only when language selection changes by user action (placed here so init via mapper doesn't trigger this) */ connect(ui->lang, SIGNAL(valueChanged()), this, SLOT(showRestartWarning_Lang())); #ifdef USE_NATIVE_I2P QObject::connect(tabI2P, SIGNAL(settingsChanged()), this, SLOT(showRestartWarning_I2P())); #endif /* disable apply button after settings are loaded as there is nothing to save */ disableApplyButton(); }
void OptionsDialog::on_applyButton_clicked() { mapper->submit(); disableApplyButton(); }
void OptionsDialog::on_applyButton_clicked() { mapper->submit(); QMessageBox::warning(this, tr("Warning"), tr("This setting will take effect after restarting Securealumnicoin."), QMessageBox::Ok); disableApplyButton(); }
void OptionsDialog::on_applyButton_clicked() { mapper->submit(); savePayConQuotes(); disableApplyButton(); }
void SettingPage::on_applyButton_clicked() { mapper->submit(); disableApplyButton(); }