@@ -88,7 +88,11 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
88
88
89
89
// Coin Control
90
90
connect (ui->pushButtonCoinControl , &QPushButton::clicked, this , &SendCoinsDialog::coinControlButtonClicked);
91
+ #if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
92
+ connect (ui->checkBoxCoinControlChange , &QCheckBox::checkStateChanged, this , &SendCoinsDialog::coinControlChangeChecked);
93
+ #else
91
94
connect (ui->checkBoxCoinControlChange , &QCheckBox::stateChanged, this , &SendCoinsDialog::coinControlChangeChecked);
95
+ #endif
92
96
connect (ui->lineEditCoinControlChange , &QValidatedLineEdit::textEdited, this , &SendCoinsDialog::coinControlChangeEdited);
93
97
94
98
// Coin Control: clipboard actions
@@ -183,8 +187,13 @@ void SendCoinsDialog::setModel(WalletModel *_model)
183
187
#endif
184
188
185
189
connect (ui->customFee , &BitcoinAmountField::valueChanged, this , &SendCoinsDialog::coinControlUpdateLabels);
190
+ #if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
191
+ connect (ui->optInRBF , &QCheckBox::checkStateChanged, this , &SendCoinsDialog::updateSmartFeeLabel);
192
+ connect (ui->optInRBF , &QCheckBox::checkStateChanged, this , &SendCoinsDialog::coinControlUpdateLabels);
193
+ #else
186
194
connect (ui->optInRBF , &QCheckBox::stateChanged, this , &SendCoinsDialog::updateSmartFeeLabel);
187
195
connect (ui->optInRBF , &QCheckBox::stateChanged, this , &SendCoinsDialog::coinControlUpdateLabels);
196
+ #endif
188
197
CAmount requiredFee = model->wallet ().getRequiredFee (1000 );
189
198
ui->customFee ->SetMinValue (requiredFee);
190
199
if (ui->customFee ->value () < requiredFee) {
@@ -944,7 +953,11 @@ void SendCoinsDialog::coinControlButtonClicked()
944
953
}
945
954
946
955
// Coin Control: checkbox custom change address
956
+ #if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
957
+ void SendCoinsDialog::coinControlChangeChecked (Qt::CheckState state)
958
+ #else
947
959
void SendCoinsDialog::coinControlChangeChecked (int state)
960
+ #endif
948
961
{
949
962
if (state == Qt::Unchecked)
950
963
{
0 commit comments