DolphinQt2: use new connection syntax instead of old syntax

This commit is contained in:
Michael Maltese
2017-06-30 02:24:09 -07:00
parent a365686956
commit f0fd38698e
4 changed files with 39 additions and 38 deletions

View File

@ -133,7 +133,9 @@ void InfoWidget::CreateLanguageSelector()
}
if (m_language_selector->count() == 1)
m_language_selector->setDisabled(true);
connect(m_language_selector, SIGNAL(currentIndexChanged(int)), this, SLOT(ChangeLanguage()));
connect(m_language_selector,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
&InfoWidget::ChangeLanguage);
ChangeLanguage();
}