Commit 9a604895 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last qt5.15 without deprecated method

parent 15cd5809
......@@ -304,9 +304,11 @@ 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