Commit ae8546be 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 7aa62a87
......@@ -267,16 +267,8 @@ void KanjiBrowserView::setupView( KanjiBrowser *parent
_strokes->addItem( i18np( "%1 stroke", "%1 strokes", stroke ) );
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(_grades, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KanjiBrowserView::changeGrade);
#else
connect(_grades, static_cast<void (KComboBox::*)(int, const QString &)>(&KComboBox::currentIndexChanged) , this, &KanjiBrowserView::changeGrade);
#endif
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(_strokes, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KanjiBrowserView::changeStrokeCount);
#else
connect(_strokes, static_cast<void (KComboBox::*)(int, const QString &)>(&KComboBox::currentIndexChanged) , this, &KanjiBrowserView::changeStrokeCount);
#endif
connect(_kanjiList, &QListWidget::itemClicked, this, &KanjiBrowserView::searchKanji);
connect(_kanjiList, &QListWidget::itemClicked, _goToKanjiInfo, &QAction::triggered);
connect(goToKanjiList, &QAction::triggered, this, &KanjiBrowserView::changeToListPage);
......
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