Commit 08371480 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile against last qt5.15

parent 2016e71b
...@@ -90,17 +90,10 @@ NoteEditDialog::NoteEditDialog(QWidget *parent) ...@@ -90,17 +90,10 @@ NoteEditDialog::NoteEditDialog(QWidget *parent)
#endif #endif
mCollectionCombobox->setToolTip(i18nc("@info:tooltip", mCollectionCombobox->setToolTip(i18nc("@info:tooltip",
"Calendar where the new note will be stored.")); "Calendar where the new note will be stored."));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mCollectionCombobox, connect(mCollectionCombobox,
QOverload<int>::of( QOverload<int>::of(
&Akonadi::CollectionComboBox::currentIndexChanged), this, &Akonadi::CollectionComboBox::currentIndexChanged), this,
&NoteEditDialog::slotCollectionChanged); &NoteEditDialog::slotCollectionChanged);
#else
connect(mCollectionCombobox,
QOverload<int, const QString &>::of(
&Akonadi::CollectionComboBox::currentIndexChanged), this,
&NoteEditDialog::slotCollectionChanged);
#endif
connect(mCollectionCombobox, QOverload<int>::of( connect(mCollectionCombobox, QOverload<int>::of(
&Akonadi::CollectionComboBox::activated), this, &Akonadi::CollectionComboBox::activated), this,
&NoteEditDialog::slotCollectionChanged); &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