40 ui->pruneWarning->setVisible(
false);
41 ui->pruneWarning->setStyleSheet(
"QLabel { color: red; }");
43 ui->pruneSize->setEnabled(
false);
44 connect(
ui->prune, &QPushButton::toggled,
ui->pruneSize,
45 &QWidget::setEnabled);
49 ui->mapPortUpnp->setEnabled(
false);
52 ui->mapPortNatpmp->setEnabled(
false);
54 connect(
this, &QDialog::accepted, [
this]() {
57 settings.value(
"fUseNatpmp").toBool());
60 ui->proxyIp->setEnabled(
false);
61 ui->proxyPort->setEnabled(
false);
64 ui->proxyIpTor->setEnabled(
false);
65 ui->proxyPortTor->setEnabled(
false);
68 connect(
ui->connectSocks, &QPushButton::toggled,
ui->proxyIp,
69 &QWidget::setEnabled);
70 connect(
ui->connectSocks, &QPushButton::toggled,
ui->proxyPort,
71 &QWidget::setEnabled);
72 connect(
ui->connectSocks, &QPushButton::toggled,
this,
75 connect(
ui->connectSocksTor, &QPushButton::toggled,
ui->proxyIpTor,
76 &QWidget::setEnabled);
77 connect(
ui->connectSocksTor, &QPushButton::toggled,
ui->proxyPortTor,
78 &QWidget::setEnabled);
79 connect(
ui->connectSocksTor, &QPushButton::toggled,
this,
85 ui->tabWidget->removeTab(
ui->tabWidget->indexOf(
ui->tabWindow));
87 ui->bitcoinAtStartup->setVisible(
false);
88 ui->verticalLayout_Main->removeWidget(
ui->bitcoinAtStartup);
89 ui->verticalLayout_Main->removeItem(
ui->horizontalSpacer_0_Main);
94 ui->tabWidget->removeTab(
ui->tabWidget->indexOf(
ui->tabWallet));
95 ui->thirdPartyTxUrlsLabel->setVisible(
false);
96 ui->thirdPartyTxUrls->setVisible(
false);
102 ui->bitcoinAtStartup->setToolTip(
104 ui->bitcoinAtStartup->setText(
107 ui->openBitcoinConfButton->setToolTip(
136 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
137 mapper->setOrientation(Qt::Vertical);
141 &OptionsDialog::reject);
151 connect(
ui->proxyPort, &QLineEdit::textChanged,
this,
153 connect(
ui->proxyPortTor, &QLineEdit::textChanged,
this,
157 ui->thirdPartyTxUrls->setCheckValidator(
162 if (!QSystemTrayIcon::isSystemTrayAvailable()) {
163 ui->hideTrayIcon->setChecked(
true);
164 ui->hideTrayIcon->setEnabled(
false);
165 ui->minimizeToTray->setChecked(
false);
166 ui->minimizeToTray->setEnabled(
false);
181 if (
_model->isRestartRequired()) {
191 ui->pruneSize->setRange(
nMinDiskSpace, std::numeric_limits<int>::max());
197 ui->overriddenByCommandLineLabel->setText(
strLabel);
210 connect(
ui->prune, &QCheckBox::clicked,
this,
212 connect(
ui->prune, &QCheckBox::clicked,
this,
215 static_cast<void (
QSpinBox::*)(
int)
>(&QSpinBox::valueChanged),
this,
218 static_cast<void (
QSpinBox::*)(
int)
>(&QSpinBox::valueChanged),
this,
221 static_cast<void (
QSpinBox::*)(
int)
>(&QSpinBox::valueChanged),
this,
224 connect(
ui->spendZeroConfChange, &QCheckBox::clicked,
this,
227 connect(
ui->allowIncoming, &QCheckBox::clicked,
this,
229 connect(
ui->connectSocks, &QCheckBox::clicked,
this,
231 connect(
ui->connectSocksTor, &QCheckBox::clicked,
this,
237 [
this] { showRestartWarning(); });
238 connect(
ui->thirdPartyTxUrls, &QLineEdit::textChanged,
239 [
this] { showRestartWarning(); });
CService LookupNumeric(const std::string &name, uint16_t portDefault, DNSLookupFn dns_lookup_function)
Resolve a service string with a numeric IP to its first corresponding service.