Commit 601d296f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last qt5.15 without deprecated method

parent b8ebcc67
......@@ -53,7 +53,11 @@ JobTrackerSearchWidget::JobTrackerSearchWidget(QWidget *parent)
mSelectColumn->addItem(QStringLiteral("Job Type"), 4);
mSelectColumn->addItem(QStringLiteral("State"), 5);
mSelectColumn->addItem(QStringLiteral("Info"), 6);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mSelectColumn, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &JobTrackerSearchWidget::slotColumnChanged);
#else
connect(mSelectColumn, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, &JobTrackerSearchWidget::slotColumnChanged);
#endif
}
JobTrackerSearchWidget::~JobTrackerSearchWidget()
......
......@@ -117,7 +117,11 @@ SearchWidget::SearchWidget(QWidget *parent)
connect(button, &QPushButton::clicked, this, &SearchWidget::search);
connect(mDatabaseView, &QListView::activated, this, &SearchWidget::fetchItem);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mStoreCombo, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &SearchWidget::openStore);
#else
connect(mStoreCombo, QOverload<int, const QString &>::of(&KComboBox::currentIndexChanged), this, &SearchWidget::openStore);
#endif
openStore(0);
......
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