Commit 3aa942cb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15

parent b792c76a
......@@ -47,7 +47,11 @@ 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