Skip to content

Commit 0d6c313

Browse files
committed
Fix build with Qt >= 6.7
1 parent 61e31fb commit 0d6c313

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/qt/sendcoinsdialog.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *p
8888

8989
// Coin Control
9090
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
9194
connect(ui->checkBoxCoinControlChange, &QCheckBox::stateChanged, this, &SendCoinsDialog::coinControlChangeChecked);
95+
#endif
9296
connect(ui->lineEditCoinControlChange, &QValidatedLineEdit::textEdited, this, &SendCoinsDialog::coinControlChangeEdited);
9397

9498
// Coin Control: clipboard actions
@@ -183,8 +187,13 @@ void SendCoinsDialog::setModel(WalletModel *_model)
183187
#endif
184188

185189
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
186194
connect(ui->optInRBF, &QCheckBox::stateChanged, this, &SendCoinsDialog::updateSmartFeeLabel);
187195
connect(ui->optInRBF, &QCheckBox::stateChanged, this, &SendCoinsDialog::coinControlUpdateLabels);
196+
#endif
188197
CAmount requiredFee = model->wallet().getRequiredFee(1000);
189198
ui->customFee->SetMinValue(requiredFee);
190199
if (ui->customFee->value() < requiredFee) {
@@ -944,7 +953,11 @@ void SendCoinsDialog::coinControlButtonClicked()
944953
}
945954

946955
// 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
947959
void SendCoinsDialog::coinControlChangeChecked(int state)
960+
#endif
948961
{
949962
if (state == Qt::Unchecked)
950963
{

src/qt/sendcoinsdialog.h

+4
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ private Q_SLOTS:
103103
void refreshBalance();
104104
void coinControlFeatureChanged(bool);
105105
void coinControlButtonClicked();
106+
#if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
107+
void coinControlChangeChecked(Qt::CheckState);
108+
#else
106109
void coinControlChangeChecked(int);
110+
#endif
107111
void coinControlChangeEdited(const QString &);
108112
void coinControlUpdateLabels();
109113
void coinControlClipboardQuantity();

0 commit comments

Comments
 (0)