Commit 4fecfa1a authored by Heiko Becker's avatar Heiko Becker 🏃
Browse files

Fix build with Qt >= 5.15.0-beta3

46ebd11e6 in qtbase removed the (int, QString) overload again and
un-deprecated the int overload.
parent 8b693c12
......@@ -81,11 +81,7 @@ NetworkDialog::NetworkDialog(bool client, QWidget* parent, const QUrl* url)
tmpLayout = new QHBoxLayout;
tmpLayout->addWidget(tmp);
tmpLayout->addWidget(m_games, 1);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(m_games, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &NetworkDialog::serviceSelected);
#else
connect(m_games, static_cast<void (KComboBox::*)(int, const QString &)>(&KComboBox::currentIndexChanged) , this, &NetworkDialog::serviceSelected);
#endif
mainLayout->addItem(tmpLayout);
QWidget* frame=new QWidget(main);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment