5 #if defined(HAVE_CONFIG_H)
12 #include <QPushButton>
19 ui->
buttonBox->button(QDialogButtonBox::Ok)->setText(tr(
"Create"));
20 ui->
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(
false);
24 ui->
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!text.isEmpty());
27 connect(ui->encrypt_wallet_checkbox, &QCheckBox::toggled, [
this](
bool checked) {
30 ui->disable_privkeys_checkbox->setEnabled(!checked);
33 if (!ui->disable_privkeys_checkbox->isEnabled()) {
34 ui->disable_privkeys_checkbox->setChecked(
false);
38 connect(ui->disable_privkeys_checkbox, &QCheckBox::toggled, [
this](
bool checked) {
41 ui->encrypt_wallet_checkbox->setEnabled(!checked);
45 ui->blank_wallet_checkbox->setChecked(
true);
49 if (!ui->encrypt_wallet_checkbox->isEnabled()) {
50 ui->encrypt_wallet_checkbox->setChecked(
false);
55 ui->descriptor_checkbox->setToolTip(tr(
"Compiled without sqlite support (required for descriptor wallets)"));
56 ui->descriptor_checkbox->setEnabled(
false);
57 ui->descriptor_checkbox->setChecked(
false);
bool isEncryptWalletChecked() const
CreateWalletDialog(QWidget *parent)
Ui::CreateWalletDialog * ui
QCheckBox * blank_wallet_checkbox
QLineEdit * wallet_name_line_edit
QCheckBox * descriptor_checkbox
bool isMakeBlankWalletChecked() const
QCheckBox * encrypt_wallet_checkbox
bool isDescriptorWalletChecked() const
bool isDisablePrivateKeysChecked() const
QCheckBox * disable_privkeys_checkbox
Dialog for creating wallets.
QString walletName() const
virtual ~CreateWalletDialog()
QDialogButtonBox * buttonBox
void setupUi(QDialog *CreateWalletDialog)