mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Replace static_cast by qOverload
This commit is contained in:
@@ -100,7 +100,7 @@ PropTabBar::PropTabBar(QWidget *parent)
|
||||
addWidget(speedButton);
|
||||
m_btnGroup->addButton(speedButton, SpeedTab);
|
||||
// SIGNAL/SLOT
|
||||
connect(m_btnGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked)
|
||||
connect(m_btnGroup, qOverload<int>(&QButtonGroup::buttonClicked)
|
||||
, this, &PropTabBar::setCurrentIndex);
|
||||
// Disable buttons focus
|
||||
for (QAbstractButton *btn : asConst(m_btnGroup->buttons()))
|
||||
|
||||
Reference in New Issue
Block a user