diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-24 05:37:56 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-30 00:00:44 +0300 |
commit | cdbc2bd1f1c171848c1fef7f217afe140e1afb06 (patch) | |
tree | 7d794804a4d1f3cbb0e61a06d7bf13f7ecf13ab7 /src/qt/bitcoinamountfield.cpp | |
parent | e1e1e708fa0fbc0c51460305da5d401ed8f218f3 (diff) | |
download | bitcoin-cdbc2bd1f1c171848c1fef7f217afe140e1afb06.tar.xz |
qt: Use template function qOverload in signal-slot connections
This commit does not change behavior.
Diffstat (limited to 'src/qt/bitcoinamountfield.cpp')
-rw-r--r-- | src/qt/bitcoinamountfield.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp index 2af3502be3..ba59bcc660 100644 --- a/src/qt/bitcoinamountfield.cpp +++ b/src/qt/bitcoinamountfield.cpp @@ -239,7 +239,7 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent) : // If one if the widgets changes, the combined content changes as well connect(amount, &AmountSpinBox::valueChanged, this, &BitcoinAmountField::valueChanged); - connect(unit, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &BitcoinAmountField::unitChanged); + connect(unit, qOverload<int>(&QComboBox::currentIndexChanged), this, &BitcoinAmountField::unitChanged); // Set default based on configuration unitChanged(unit->currentIndex()); |