Commit 4474d8f2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15

parent 5c38e113
......@@ -81,7 +81,11 @@ 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