mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Replace static_cast by qOverload
This commit is contained in:
@@ -67,7 +67,7 @@ QWidget *ScanFoldersDelegate::createEditor(QWidget *parent, const QStyleOptionVi
|
||||
editor->addItem(index.data().toString());
|
||||
}
|
||||
|
||||
connect(editor, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged)
|
||||
connect(editor, qOverload<int>(&QComboBox::currentIndexChanged)
|
||||
, this, &ScanFoldersDelegate::comboboxIndexChanged);
|
||||
return editor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user