Commit cc87c7fc authored by Heiko Becker's avatar Heiko Becker 🏃
Browse files

Fix building against Qt >= 5.15.0-beta3

QComboBox::currentIndexChanged(int index) was deprecated for a short
time.

This partially reverts 990e4bed.
parent f75ea70a
......@@ -87,17 +87,10 @@ NoteEditDialog::NoteEditDialog(QWidget *parent)
"Calendar where the new note will be stored."));
#endif
mCollectionCombobox->setToolTip(i18n("Calendar where the new note will be stored."));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mCollectionCombobox,
QOverload<int>::of(
&Akonadi::CollectionComboBox::currentIndexChanged), this,
&NoteEditDialog::slotCollectionChanged);
#else
connect(mCollectionCombobox,
QOverload<int, const QString &>::of(
&Akonadi::CollectionComboBox::currentIndexChanged), this,
&NoteEditDialog::slotCollectionChanged);
#endif
connect(mCollectionCombobox, QOverload<int>::of(
&Akonadi::CollectionComboBox::activated), this,
&NoteEditDialog::slotCollectionChanged);
......
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