Commit 2b063917 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 7eb2f759
......@@ -564,11 +564,7 @@ Kolf::SlopeConfig::SlopeConfig(Kolf::Slope* slope, QWidget* parent)
KComboBox* typeBox = new KComboBox(this);
typeBox->addItems(g_slopeData->translatedGradientKeys);
typeBox->setCurrentIndex(slope->slopeType());
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(typeBox, QOverload<int>::of(&KComboBox::currentIndexChanged), slope, &Kolf::Slope::setSlopeType);
#else
connect(typeBox, QOverload<int, const QString &>::of(&KComboBox::currentIndexChanged), slope, &Kolf::Slope::setSlopeType);
#endif
layout->addWidget(typeBox, 0, 0, 1, 2);
QCheckBox* reversed = new QCheckBox(i18n("Reverse direction"), this);
......
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