Example #1
0
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();
}
Example #3
0
void OptionsDialog::on_applyButton_clicked()
{
    mapper->submit();
	QMessageBox::warning(this, tr("Warning"), tr("This setting will take effect after restarting Securealumnicoin."), QMessageBox::Ok);
    disableApplyButton();
}
Example #4
0
void OptionsDialog::on_applyButton_clicked()
{
    mapper->submit();
    savePayConQuotes();
    disableApplyButton();
}
Example #5
0
void SettingPage::on_applyButton_clicked()
{
    mapper->submit();
    disableApplyButton();
}