mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
DolphinQt: Use qOverload where applicable
Provides the same behvaior, but in a much more concise manner.
This commit is contained in:
parent
58de3c59ce
commit
19115c84dd
28 changed files with 96 additions and 127 deletions
|
@ -126,8 +126,8 @@ void NetPlayBrowser::CreateWidgets()
|
|||
|
||||
void NetPlayBrowser::ConnectWidgets()
|
||||
{
|
||||
connect(m_region_combo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this, &NetPlayBrowser::Refresh);
|
||||
connect(m_region_combo, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&NetPlayBrowser::Refresh);
|
||||
|
||||
connect(m_button_box, &QDialogButtonBox::accepted, this, &NetPlayBrowser::accept);
|
||||
connect(m_button_box, &QDialogButtonBox::rejected, this, &NetPlayBrowser::reject);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue