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

Fix compilation with more recent Qt 5.15

parent 29ceeede
......@@ -47,11 +47,7 @@ MailMergeWidget::MailMergeWidget(QWidget *parent)
mSource->setObjectName(QStringLiteral("source"));
mSource->addItem(i18n("Address Book"), AddressBook);
mSource->addItem(i18n("CSV"), CSV);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mSource, qOverload<int>(&QComboBox::currentIndexChanged), this, &MailMergeWidget::slotSourceChanged);
#else
connect(mSource, qOverload<int, const QString &>(&QComboBox::currentIndexChanged), this, &MailMergeWidget::slotSourceChanged);
#endif
connect(mSource, qOverload<int>(&QComboBox::activated), this, &MailMergeWidget::slotSourceChanged);
hbox->addWidget(mSource);
......
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