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

Make it compile against last qt5.15 without deprecated method

parent af7725de
......@@ -190,7 +190,11 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mMailAction->addItem(VacationUtils::mailAction(static_cast<VacationUtils::MailAction>(i)));
}
mMailAction->setObjectName(QStringLiteral("mMailAction"));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mMailAction, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &VacationEditWidget::mailActionChanged);
#else
connect(mMailAction, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, &VacationEditWidget::mailActionChanged);
#endif
//Add imap select folder plugin here.
mMailActionRecipient = new VacationMailActionWidget(this);
......
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