mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-15 07:03:40 +01:00
qt: Use new Qt5 connect syntax
This commit is contained in:
@@ -29,7 +29,7 @@ public:
|
||||
{
|
||||
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
|
||||
@@ -213,8 +213,8 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent) :
|
||||
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<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &BitcoinAmountField::unitChanged);
|
||||
|
||||
// Set default based on configuration
|
||||
unitChanged(unit->currentIndex());
|
||||
|
||||
Reference in New Issue
Block a user