Commit 4ae7ae8f 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 7ffd41a9
......@@ -304,11 +304,7 @@ void TopLevel::setupKAction()
PlaygroundDelegate *playgroundDelegate = new PlaygroundDelegate(playgroundCombo->view());
playgroundCombo->setItemDelegate(playgroundDelegate);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(playgroundCombo, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &TopLevel::changeGameboardFromCombo);
#else
connect(playgroundCombo, QOverload<int, const QString &>::of(&KComboBox::currentIndexChanged), this, &TopLevel::changeGameboardFromCombo);
#endif
QWidgetAction *widgetAction = new QWidgetAction(this);
widgetAction->setDefaultWidget(playgroundCombo);
actionCollection()->addAction( QStringLiteral( "playgroundSelection" ),widgetAction);
......
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