diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp --- a/src/qt/bitcoinamountfield.cpp +++ b/src/qt/bitcoinamountfield.cpp @@ -27,8 +27,8 @@ singleStep(100000 * SATOSHI) { setAlignment(Qt::AlignRight); - connect(lineEdit(), SIGNAL(textEdited(QString)), this, - SIGNAL(valueChanged())); + connect(lineEdit(), &QLineEdit::textEdited, this, + &AmountSpinBox::valueChanged); } QValidator::State validate(QString &text, int &pos) const override { @@ -215,9 +215,12 @@ setFocusProxy(amount); // If one if the widgets changes, the combined content changes as well - connect(amount, SIGNAL(valueChanged()), this, SIGNAL(valueChanged())); - connect(unit, SIGNAL(currentIndexChanged(int)), this, - SLOT(unitChanged(int))); + connect(amount, &AmountSpinBox::valueChanged, this, + &BitcoinAmountField::valueChanged); + connect( + unit, + static_cast(&QComboBox::currentIndexChanged), + this, &BitcoinAmountField::unitChanged); // Set default based on configuration unitChanged(unit->currentIndex());