mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
GUI/OptionsDialog: Split spam filtering to a new tab
This commit is contained in:
parent
b0e0651b37
commit
1648442c33
@ -264,8 +264,13 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet)
|
|||||||
mempoolexpiry->setMaximum(std::numeric_limits<int>::max());
|
mempoolexpiry->setMaximum(std::numeric_limits<int>::max());
|
||||||
CreateOptionUI(verticalLayout_Mempool, mempoolexpiry, tr("Do not keep transactions in memory more than %s hours"));
|
CreateOptionUI(verticalLayout_Mempool, mempoolexpiry, tr("Do not keep transactions in memory more than %s hours"));
|
||||||
|
|
||||||
QGroupBox * const groupBox_Spamfiltering = new QGroupBox(tabMempool);
|
verticalLayout_Mempool->addItem(new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding));
|
||||||
groupBox_Spamfiltering->setTitle(tr("Spam filtering"));
|
|
||||||
|
/* Filters tab */
|
||||||
|
|
||||||
|
QWidget * const tabFilters = new QWidget();
|
||||||
|
auto& groupBox_Spamfiltering = tabFilters;
|
||||||
|
ui->tabWidget->insertTab(ui->tabWidget->indexOf(ui->tabWindow), tabFilters, tr("Spam &filtering"));
|
||||||
QVBoxLayout * const verticalLayout_Spamfiltering = new QVBoxLayout(groupBox_Spamfiltering);
|
QVBoxLayout * const verticalLayout_Spamfiltering = new QVBoxLayout(groupBox_Spamfiltering);
|
||||||
|
|
||||||
rejectunknownscripts = new QCheckBox(groupBox_Spamfiltering);
|
rejectunknownscripts = new QCheckBox(groupBox_Spamfiltering);
|
||||||
@ -432,9 +437,7 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet)
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
verticalLayout_Mempool->addWidget(groupBox_Spamfiltering);
|
verticalLayout_Spamfiltering->addItem(new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding));
|
||||||
|
|
||||||
verticalLayout_Mempool->addItem(new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding));
|
|
||||||
|
|
||||||
/* Mining tab */
|
/* Mining tab */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user