mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-20 04:36:08 +01:00
qt: Use template function qOverload in signal-slot connections
This commit does not change behavior.
This commit is contained in:
@@ -561,7 +561,7 @@ void BitcoinGUI::createToolBars()
|
||||
|
||||
m_wallet_selector = new QComboBox();
|
||||
m_wallet_selector->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
connect(m_wallet_selector, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &BitcoinGUI::setCurrentWalletBySelectorIndex);
|
||||
connect(m_wallet_selector, qOverload<int>(&QComboBox::currentIndexChanged), this, &BitcoinGUI::setCurrentWalletBySelectorIndex);
|
||||
|
||||
m_wallet_selector_label = new QLabel();
|
||||
m_wallet_selector_label->setText(tr("Wallet:") + " ");
|
||||
|
||||
Reference in New Issue
Block a user