Changeset View
Changeset View
Standalone View
Standalone View
src/qt/optionsdialog.cpp
Show First 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | void OptionsDialog::setModel(OptionsModel *_model) { | ||||
connect(ui->connectSocksTor, SIGNAL(clicked(bool)), this, | connect(ui->connectSocksTor, SIGNAL(clicked(bool)), this, | ||||
SLOT(showRestartWarning())); | SLOT(showRestartWarning())); | ||||
/* Display */ | /* Display */ | ||||
connect(ui->lang, SIGNAL(valueChanged()), this, SLOT(showRestartWarning())); | connect(ui->lang, SIGNAL(valueChanged()), this, SLOT(showRestartWarning())); | ||||
connect(ui->thirdPartyTxUrls, SIGNAL(textChanged(const QString &)), this, | connect(ui->thirdPartyTxUrls, SIGNAL(textChanged(const QString &)), this, | ||||
SLOT(showRestartWarning())); | SLOT(showRestartWarning())); | ||||
} | } | ||||
void OptionsDialog::setCurrentTab(OptionsDialog::Tab tab) { | |||||
QWidget *tab_widget = nullptr; | |||||
if (tab == OptionsDialog::Tab::TAB_NETWORK) tab_widget = ui->tabNetwork; | |||||
Fabien: Braces, also the next line. | |||||
if (tab == OptionsDialog::Tab::TAB_MAIN) tab_widget = ui->tabMain; | |||||
if (tab_widget && ui->tabWidget->currentWidget() != tab_widget) { | |||||
ui->tabWidget->setCurrentWidget(tab_widget); | |||||
} | |||||
} | |||||
void OptionsDialog::setMapper() { | void OptionsDialog::setMapper() { | ||||
/* Main */ | /* Main */ | ||||
mapper->addMapping(ui->bitcoinAtStartup, OptionsModel::StartAtStartup); | mapper->addMapping(ui->bitcoinAtStartup, OptionsModel::StartAtStartup); | ||||
mapper->addMapping(ui->threadsScriptVerif, | mapper->addMapping(ui->threadsScriptVerif, | ||||
OptionsModel::ThreadsScriptVerif); | OptionsModel::ThreadsScriptVerif); | ||||
mapper->addMapping(ui->databaseCache, OptionsModel::DatabaseCache); | mapper->addMapping(ui->databaseCache, OptionsModel::DatabaseCache); | ||||
/* Wallet */ | /* Wallet */ | ||||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |
Braces, also the next line.